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/catcache.h"
#include "utils/fmgroids.h"
#include "utils/hsearch.h"
#include "utils/inval.h"
#include "utils/relfilenumbermap.h"
#include "utils/relmapper.h"
Go to the source code of this file.
Data Structures | |
struct | RelfilenumberMapKey |
struct | RelfilenumberMapEntry |
Functions | |
static void | RelfilenumberMapInvalidateCallback (Datum arg, Oid relid) |
static void | InitializeRelfilenumberMap (void) |
Oid | RelidByRelfilenumber (Oid reltablespace, RelFileNumber relfilenumber) |
Variables | |
static HTAB * | RelfilenumberMapHash = NULL |
static ScanKeyData | relfilenumber_skey [2] |
|
static |
Definition at line 86 of file relfilenumbermap.c.
References BTEqualStrategyNumber, CacheMemoryContext, CacheRegisterRelcacheCallback(), CreateCacheMemoryContext(), ctl, fmgr_info_cxt(), HASH_BLOBS, HASH_CONTEXT, hash_create(), HASH_ELEM, i, InvalidOid, MemSet, relfilenumber_skey, RelfilenumberMapHash, RelfilenumberMapInvalidateCallback(), ScanKeyData::sk_attno, ScanKeyData::sk_collation, ScanKeyData::sk_strategy, and ScanKeyData::sk_subtype.
Referenced by RelidByRelfilenumber().
Definition at line 52 of file relfilenumbermap.c.
References Assert, elog, ERROR, HASH_REMOVE, hash_search(), hash_seq_init(), hash_seq_search(), InvalidOid, RelfilenumberMapEntry::key, RelfilenumberMapHash, and RelfilenumberMapEntry::relid.
Referenced by InitializeRelfilenumberMap().
Oid RelidByRelfilenumber | ( | Oid | reltablespace, |
RelFileNumber | relfilenumber | ||
) |
Definition at line 136 of file relfilenumbermap.c.
References AccessShareLock, Assert, elog, ERROR, GETSTRUCT, HASH_ENTER, HASH_FIND, hash_search(), HeapTupleIsValid, InitializeRelfilenumberMap(), InvalidOid, sort-test::key, MemSet, MyDatabaseTableSpace, ObjectIdGetDatum(), RelationMapFilenumberToOid(), relfilenumber_skey, RelfilenumberMapHash, RelfilenumberMapEntry::relid, 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 33 of file relfilenumbermap.c.
Referenced by InitializeRelfilenumberMap(), and RelidByRelfilenumber().
|
static |
Definition at line 30 of file relfilenumbermap.c.
Referenced by InitializeRelfilenumberMap(), RelfilenumberMapInvalidateCallback(), and RelidByRelfilenumber().