* RelationIncrementReferenceCount * Increments relation reference count. * * Note: bootstrap mode has its own weird ideas about relation refcount * behavior; we ought to fix it someday, but for now, just disable * reference count ownership tracking in bootstrap mode. */
| 2225 | * reference count ownership tracking in bootstrap mode. |
| 2226 | */ |
| 2227 | void |
| 2228 | RelationIncrementReferenceCount(Relation rel) |
| 2229 | { |
| 2230 | ResourceOwnerEnlargeRelationRefs(CurrentResourceOwner); |
| 2231 | rel->rd_refcnt += 1; |
| 2232 | if (!IsBootstrapProcessingMode()) |
| 2233 | ResourceOwnerRememberRelationRef(CurrentResourceOwner, rel); |
| 2234 | } |
| 2235 | |
| 2236 | /* |
| 2237 | * RelationDecrementReferenceCount |
no test coverage detected