/* * Make sure there is room for at least one more entry in a ResourceOwner's * buffer array. * * This is separate from actually inserting an entry because if we run out * of memory, it's critical to do so *before* acquiring the resource. * * We allow the case owner == NULL because the bufmgr is sometimes invoked * outside any transaction (for example, during WAL recovery). */ void ResourceOwnerEnlargeBuffers(ResourceOwner owner) { if (owner == NULL) return; ResourceArrayEnlarge(&(owner->bufferarr)); }
/* * Make sure there is room for at least one more entry in a ResourceOwner's * buffer array. * * This is separate from actually inserting an entry because if we run out * of memory, it's critical to do so *before* acquiring the resource. */ void ResourceOwnerEnlargeBuffers(ResourceOwner owner) { /* We used to allow pinning buffers without a resowner, but no more */ Assert(owner != NULL); ResourceArrayEnlarge(&(owner->bufferarr)); }
/* * Make sure there is room for at least one more entry in a ResourceOwner's * catcache reference array. * * This is separate from actually inserting an entry because if we run out * of memory, it's critical to do so *before* acquiring the resource. */ void ResourceOwnerEnlargeCatCacheRefs(ResourceOwner owner) { ResourceArrayEnlarge(&(owner->catrefarr)); }
/* * Make sure there is room for at least one more entry in a ResourceOwner's * JIT context reference array. * * This is separate from actually inserting an entry because if we run out of * memory, it's critical to do so *before* acquiring the resource. */ void ResourceOwnerEnlargeJIT(ResourceOwner owner) { ResourceArrayEnlarge(&(owner->jitarr)); }
/* * Make sure there is room for at least one more entry in a ResourceOwner's * dynamic shmem segment reference array. * * This is separate from actually inserting an entry because if we run out * of memory, it's critical to do so *before* acquiring the resource. */ void ResourceOwnerEnlargeDSMs(ResourceOwner owner) { ResourceArrayEnlarge(&(owner->dsmarr)); }
/* * Make sure there is room for at least one more entry in a ResourceOwner's * files reference array. * * This is separate from actually inserting an entry because if we run out * of memory, it's critical to do so *before* acquiring the resource. */ void ResourceOwnerEnlargeFiles(ResourceOwner owner) { ResourceArrayEnlarge(&(owner->filearr)); }
/* * Make sure there is room for at least one more entry in a ResourceOwner's * snapshot reference array. * * This is separate from actually inserting an entry because if we run out * of memory, it's critical to do so *before* acquiring the resource. */ void ResourceOwnerEnlargeSnapshots(ResourceOwner owner) { ResourceArrayEnlarge(&(owner->snapshotarr)); }
/* * Make sure there is room for at least one more entry in a ResourceOwner's * tupdesc reference array. * * This is separate from actually inserting an entry because if we run out * of memory, it's critical to do so *before* acquiring the resource. */ void ResourceOwnerEnlargeTupleDescs(ResourceOwner owner) { ResourceArrayEnlarge(&(owner->tupdescarr)); }
/* * Make sure there is room for at least one more entry in a ResourceOwner's * plancache reference array. * * This is separate from actually inserting an entry because if we run out * of memory, it's critical to do so *before* acquiring the resource. */ void ResourceOwnerEnlargePlanCacheRefs(ResourceOwner owner) { ResourceArrayEnlarge(&(owner->planrefarr)); }
/* * Make sure there is room for at least one more entry in a ResourceOwner's * relcache reference array. * * This is separate from actually inserting an entry because if we run out * of memory, it's critical to do so *before* acquiring the resource. */ void ResourceOwnerEnlargeRelationRefs(ResourceOwner owner) { ResourceArrayEnlarge(&(owner->relrefarr)); }