PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/genam.h"
#include "access/htup_details.h"
#include "access/table.h"
#include "catalog/pg_class.h"
#include "catalog/pg_tablespace.h"
#include "miscadmin.h"
#include "utils/builtins.h"
#include "utils/catcache.h"
#include "utils/fmgroids.h"
#include "utils/hsearch.h"
#include "utils/inval.h"
#include "utils/rel.h"
#include "utils/relfilenodemap.h"
#include "utils/relmapper.h"
Go to the source code of this file.
Data Structures | |
struct | RelfilenodeMapKey |
struct | RelfilenodeMapEntry |
Functions | |
static void | RelfilenodeMapInvalidateCallback (Datum arg, Oid relid) |
static void | InitializeRelfilenodeMap (void) |
Oid | RelidByRelfilenode (Oid reltablespace, Oid relfilenode) |
Variables | |
static HTAB * | RelfilenodeMapHash = NULL |
static ScanKeyData | relfilenode_skey [2] |
|
static |
Definition at line 88 of file relfilenodemap.c.
References BTEqualStrategyNumber, CacheMemoryContext, CacheRegisterRelcacheCallback(), CreateCacheMemoryContext(), HASHCTL::entrysize, fmgr_info_cxt(), HASH_BLOBS, HASH_CONTEXT, hash_create(), HASH_ELEM, HASHCTL::hcxt, i, InvalidOid, HASHCTL::keysize, MemSet, RelfilenodeMapInvalidateCallback(), ScanKeyData::sk_attno, ScanKeyData::sk_collation, ScanKeyData::sk_strategy, and ScanKeyData::sk_subtype.
Referenced by RelidByRelfilenode().
Definition at line 54 of file relfilenodemap.c.
References Assert, elog, ERROR, HASH_REMOVE, hash_search(), hash_seq_init(), hash_seq_search(), InvalidOid, RelfilenodeMapEntry::key, RelfilenodeMapEntry::relid, and status().
Referenced by InitializeRelfilenodeMap().
Definition at line 138 of file relfilenodemap.c.
References AccessShareLock, Assert, ClassTblspcRelfilenodeIndexId, elog, ERROR, GETSTRUCT, HASH_ENTER, HASH_FIND, hash_search(), HeapTupleIsValid, InitializeRelfilenodeMap(), InvalidOid, sort-test::key, MemSet, MyDatabaseTableSpace, ObjectIdGetDatum, RelationMapFilenodeToOid(), RelfilenodeMapKey::relfilenode, RelfilenodeMapEntry::relid, RelfilenodeMapKey::reltablespace, ScanKeyData::sk_argument, systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), and table_open().
Referenced by autoprewarm_database_main(), pg_filenode_relation(), and ReorderBufferProcessTXN().
|
static |
Definition at line 35 of file relfilenodemap.c.
|
static |
Definition at line 32 of file relfilenodemap.c.