PostgreSQL Source Code
git master
|
#include "storage/dsm.h"
#include "storage/fd.h"
#include "storage/lock.h"
#include "utils/catcache.h"
#include "utils/plancache.h"
#include "utils/resowner.h"
#include "utils/snapshot.h"
Go to the source code of this file.
void ResourceOwnerEnlargeBuffers | ( | ResourceOwner | owner | ) |
Definition at line 950 of file resowner.c.
References Assert(), ResourceOwnerData::bufferarr, and ResourceArrayEnlarge().
Referenced by BgBufferSync(), BufferSync(), FlushDatabaseBuffers(), FlushRelationBuffers(), FlushRelationsAllBuffers(), IncrBufferRefCount(), ReadBuffer_common(), and ReadRecentBuffer().
void ResourceOwnerEnlargeCatCacheListRefs | ( | ResourceOwner | owner | ) |
Definition at line 1074 of file resowner.c.
References ResourceOwnerData::catlistrefarr, and ResourceArrayEnlarge().
Referenced by SearchCatCacheList().
void ResourceOwnerEnlargeCatCacheRefs | ( | ResourceOwner | owner | ) |
Definition at line 1039 of file resowner.c.
References ResourceOwnerData::catrefarr, and ResourceArrayEnlarge().
Referenced by SearchCatCacheInternal(), and SearchCatCacheMiss().
void ResourceOwnerEnlargeCryptoHash | ( | ResourceOwner | owner | ) |
Definition at line 1415 of file resowner.c.
References ResourceOwnerData::cryptohasharr, and ResourceArrayEnlarge().
Referenced by pg_cryptohash_create().
void ResourceOwnerEnlargeDSMs | ( | ResourceOwner | owner | ) |
Definition at line 1335 of file resowner.c.
References ResourceOwnerData::dsmarr, and ResourceArrayEnlarge().
Referenced by dsm_create_descriptor(), and dsm_unpin_mapping().
void ResourceOwnerEnlargeFiles | ( | ResourceOwner | owner | ) |
Definition at line 1290 of file resowner.c.
References ResourceOwnerData::filearr, and ResourceArrayEnlarge().
Referenced by OpenTemporaryFile(), PathNameCreateTemporaryFile(), and PathNameOpenTemporaryFile().
void ResourceOwnerEnlargeHMAC | ( | ResourceOwner | owner | ) |
Definition at line 1460 of file resowner.c.
References ResourceOwnerData::hmacarr, and ResourceArrayEnlarge().
Referenced by pg_hmac_create().
void ResourceOwnerEnlargeJIT | ( | ResourceOwner | owner | ) |
Definition at line 1380 of file resowner.c.
References ResourceOwnerData::jitarr, and ResourceArrayEnlarge().
Referenced by llvm_create_context().
void ResourceOwnerEnlargePlanCacheRefs | ( | ResourceOwner | owner | ) |
Definition at line 1154 of file resowner.c.
References ResourceOwnerData::planrefarr, and ResourceArrayEnlarge().
Referenced by CachedPlanAllowsSimpleValidityCheck(), CachedPlanIsSimplyValid(), and GetCachedPlan().
void ResourceOwnerEnlargeRelationRefs | ( | ResourceOwner | owner | ) |
Definition at line 1109 of file resowner.c.
References ResourceOwnerData::relrefarr, and ResourceArrayEnlarge().
Referenced by RelationIncrementReferenceCount().
void ResourceOwnerEnlargeSnapshots | ( | ResourceOwner | owner | ) |
Definition at line 1244 of file resowner.c.
References ResourceArrayEnlarge(), and ResourceOwnerData::snapshotarr.
Referenced by RegisterSnapshotOnOwner().
void ResourceOwnerEnlargeTupleDescs | ( | ResourceOwner | owner | ) |
Definition at line 1198 of file resowner.c.
References ResourceArrayEnlarge(), and ResourceOwnerData::tupdescarr.
Referenced by IncrTupleDescRefCount().
void ResourceOwnerForgetBuffer | ( | ResourceOwner | owner, |
Buffer | buffer | ||
) |
Definition at line 972 of file resowner.c.
References ResourceOwnerData::bufferarr, BufferGetDatum, elog(), ERROR, ResourceOwnerData::name, and ResourceArrayRemove().
Referenced by ReleaseAndReadBuffer(), ReleaseBuffer(), and UnpinBuffer().
void ResourceOwnerForgetCatCacheListRef | ( | ResourceOwner | owner, |
CatCList * | list | ||
) |
Definition at line 1094 of file resowner.c.
References ResourceOwnerData::catlistrefarr, elog(), ERROR, sort-test::list, ResourceOwnerData::name, PointerGetDatum(), and ResourceArrayRemove().
Referenced by ReleaseCatCacheList().
void ResourceOwnerForgetCatCacheRef | ( | ResourceOwner | owner, |
HeapTuple | tuple | ||
) |
Definition at line 1059 of file resowner.c.
References ResourceOwnerData::catrefarr, elog(), ERROR, ResourceOwnerData::name, PointerGetDatum(), and ResourceArrayRemove().
Referenced by ReleaseCatCache().
void ResourceOwnerForgetCryptoHash | ( | ResourceOwner | owner, |
Datum | handle | ||
) |
Definition at line 1435 of file resowner.c.
References ResourceOwnerData::cryptohasharr, DatumGetPointer(), elog(), ERROR, ResourceOwnerData::name, and ResourceArrayRemove().
Referenced by pg_cryptohash_free().
void ResourceOwnerForgetDSM | ( | ResourceOwner | owner, |
dsm_segment * | seg | ||
) |
Definition at line 1355 of file resowner.c.
References dsm_segment_handle(), ResourceOwnerData::dsmarr, elog(), ERROR, ResourceOwnerData::name, PointerGetDatum(), and ResourceArrayRemove().
Referenced by dsm_create(), dsm_detach(), and dsm_pin_mapping().
void ResourceOwnerForgetFile | ( | ResourceOwner | owner, |
File | file | ||
) |
Definition at line 1310 of file resowner.c.
References elog(), ERROR, ResourceOwnerData::filearr, FileGetDatum, ResourceOwnerData::name, and ResourceArrayRemove().
Referenced by FileClose().
void ResourceOwnerForgetHMAC | ( | ResourceOwner | owner, |
Datum | handle | ||
) |
Definition at line 1480 of file resowner.c.
References DatumGetPointer(), elog(), ERROR, ResourceOwnerData::hmacarr, ResourceOwnerData::name, and ResourceArrayRemove().
Referenced by pg_hmac_free().
void ResourceOwnerForgetJIT | ( | ResourceOwner | owner, |
Datum | handle | ||
) |
Definition at line 1400 of file resowner.c.
References DatumGetPointer(), elog(), ERROR, ResourceOwnerData::jitarr, ResourceOwnerData::name, and ResourceArrayRemove().
Referenced by jit_release_context().
void ResourceOwnerForgetLock | ( | ResourceOwner | owner, |
LOCALLOCK * | locallock | ||
) |
Definition at line 1010 of file resowner.c.
References Assert(), elog(), ERROR, i, ResourceOwnerData::locks, MAX_RESOWNER_LOCKS, ResourceOwnerData::name, and ResourceOwnerData::nlocks.
Referenced by LockReassignOwner(), LockRelease(), LockReleaseAll(), ReleaseLockIfHeld(), and RemoveLocalLock().
void ResourceOwnerForgetPlanCacheRef | ( | ResourceOwner | owner, |
CachedPlan * | plan | ||
) |
Definition at line 1174 of file resowner.c.
References elog(), ERROR, ResourceOwnerData::name, ResourceOwnerData::planrefarr, PointerGetDatum(), and ResourceArrayRemove().
Referenced by ReleaseCachedPlan().
void ResourceOwnerForgetRelationRef | ( | ResourceOwner | owner, |
Relation | rel | ||
) |
Definition at line 1129 of file resowner.c.
References elog(), ERROR, ResourceOwnerData::name, PointerGetDatum(), RelationGetRelationName, ResourceOwnerData::relrefarr, and ResourceArrayRemove().
Referenced by RelationDecrementReferenceCount().
void ResourceOwnerForgetSnapshot | ( | ResourceOwner | owner, |
Snapshot | snapshot | ||
) |
Definition at line 1264 of file resowner.c.
References elog(), ERROR, ResourceOwnerData::name, PointerGetDatum(), ResourceArrayRemove(), and ResourceOwnerData::snapshotarr.
Referenced by UnregisterSnapshotFromOwner().
void ResourceOwnerForgetTupleDesc | ( | ResourceOwner | owner, |
TupleDesc | tupdesc | ||
) |
Definition at line 1218 of file resowner.c.
References elog(), ERROR, ResourceOwnerData::name, PointerGetDatum(), ResourceArrayRemove(), and ResourceOwnerData::tupdescarr.
Referenced by DecrTupleDescRefCount().
void ResourceOwnerRememberBuffer | ( | ResourceOwner | owner, |
Buffer | buffer | ||
) |
Definition at line 963 of file resowner.c.
References ResourceOwnerData::bufferarr, BufferGetDatum, and ResourceArrayAdd().
Referenced by IncrBufferRefCount(), LocalBufferAlloc(), PinBuffer(), PinBuffer_Locked(), and ReadRecentBuffer().
void ResourceOwnerRememberCatCacheListRef | ( | ResourceOwner | owner, |
CatCList * | list | ||
) |
Definition at line 1085 of file resowner.c.
References ResourceOwnerData::catlistrefarr, sort-test::list, PointerGetDatum(), and ResourceArrayAdd().
Referenced by SearchCatCacheList().
void ResourceOwnerRememberCatCacheRef | ( | ResourceOwner | owner, |
HeapTuple | tuple | ||
) |
Definition at line 1050 of file resowner.c.
References ResourceOwnerData::catrefarr, PointerGetDatum(), and ResourceArrayAdd().
Referenced by SearchCatCacheInternal(), and SearchCatCacheMiss().
void ResourceOwnerRememberCryptoHash | ( | ResourceOwner | owner, |
Datum | handle | ||
) |
Definition at line 1426 of file resowner.c.
References ResourceOwnerData::cryptohasharr, and ResourceArrayAdd().
Referenced by pg_cryptohash_create().
void ResourceOwnerRememberDSM | ( | ResourceOwner | owner, |
dsm_segment * | seg | ||
) |
Definition at line 1346 of file resowner.c.
References ResourceOwnerData::dsmarr, PointerGetDatum(), and ResourceArrayAdd().
Referenced by dsm_create_descriptor(), and dsm_unpin_mapping().
void ResourceOwnerRememberFile | ( | ResourceOwner | owner, |
File | file | ||
) |
Definition at line 1301 of file resowner.c.
References ResourceOwnerData::filearr, FileGetDatum, and ResourceArrayAdd().
Referenced by RegisterTemporaryFile().
void ResourceOwnerRememberHMAC | ( | ResourceOwner | owner, |
Datum | handle | ||
) |
Definition at line 1471 of file resowner.c.
References ResourceOwnerData::hmacarr, and ResourceArrayAdd().
Referenced by pg_hmac_create().
void ResourceOwnerRememberJIT | ( | ResourceOwner | owner, |
Datum | handle | ||
) |
Definition at line 1391 of file resowner.c.
References ResourceOwnerData::jitarr, and ResourceArrayAdd().
Referenced by llvm_create_context().
void ResourceOwnerRememberLock | ( | ResourceOwner | owner, |
LOCALLOCK * | locallock | ||
) |
Definition at line 990 of file resowner.c.
References Assert(), ResourceOwnerData::locks, MAX_RESOWNER_LOCKS, and ResourceOwnerData::nlocks.
Referenced by GrantLockLocal(), and LockReassignOwner().
void ResourceOwnerRememberPlanCacheRef | ( | ResourceOwner | owner, |
CachedPlan * | plan | ||
) |
Definition at line 1165 of file resowner.c.
References ResourceOwnerData::planrefarr, PointerGetDatum(), and ResourceArrayAdd().
Referenced by CachedPlanAllowsSimpleValidityCheck(), CachedPlanIsSimplyValid(), and GetCachedPlan().
void ResourceOwnerRememberRelationRef | ( | ResourceOwner | owner, |
Relation | rel | ||
) |
Definition at line 1120 of file resowner.c.
References PointerGetDatum(), ResourceOwnerData::relrefarr, and ResourceArrayAdd().
Referenced by RelationIncrementReferenceCount().
void ResourceOwnerRememberSnapshot | ( | ResourceOwner | owner, |
Snapshot | snapshot | ||
) |
Definition at line 1255 of file resowner.c.
References PointerGetDatum(), ResourceArrayAdd(), and ResourceOwnerData::snapshotarr.
Referenced by RegisterSnapshotOnOwner().
void ResourceOwnerRememberTupleDesc | ( | ResourceOwner | owner, |
TupleDesc | tupdesc | ||
) |
Definition at line 1209 of file resowner.c.
References PointerGetDatum(), ResourceArrayAdd(), and ResourceOwnerData::tupdescarr.
Referenced by IncrTupleDescRefCount().