PostgreSQL Source Code git master
Loading...
Searching...
No Matches
catalog.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * catalog.h
4 * prototypes for functions in backend/catalog/catalog.c
5 *
6 *
7 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/catalog/catalog.h
11 *
12 *-------------------------------------------------------------------------
13 */
14#ifndef CATALOG_H
15#define CATALOG_H
16
17#include "catalog/pg_class.h"
18#include "utils/relcache.h"
19
20
21extern bool IsSystemRelation(Relation relation);
22extern bool IsToastRelation(Relation relation);
23extern bool IsCatalogRelation(Relation relation);
24extern bool IsInplaceUpdateRelation(Relation relation);
25
26extern bool IsSystemClass(Oid relid, Form_pg_class reltuple);
29
30extern bool IsCatalogRelationOid(Oid relid);
31extern bool IsCatalogTextUniqueIndexOid(Oid relid);
32extern bool IsInplaceUpdateOid(Oid relid);
33
37
38extern bool IsReservedName(const char *name);
39
41
42extern bool IsPinnedObject(Oid classId, Oid objectId);
43
46extern RelFileNumber GetNewRelFileNumber(Oid reltablespace,
48 char relpersistence);
49
50#endif /* CATALOG_H */
int16 AttrNumber
Definition attnum.h:21
bool IsToastRelation(Relation relation)
Definition catalog.c:208
bool IsToastNamespace(Oid namespaceId)
Definition catalog.c:277
bool IsConflictLogTableClass(Form_pg_class reltuple)
Definition catalog.c:242
bool IsSystemRelation(Relation relation)
Definition catalog.c:74
Oid GetNewOidWithIndex(Relation relation, Oid indexId, AttrNumber oidcolumn)
Definition catalog.c:475
bool IsConflictLogTableNamespace(Oid namespaceId)
Definition catalog.c:290
RelFileNumber GetNewRelFileNumber(Oid reltablespace, Relation pg_class, char relpersistence)
Definition catalog.c:584
bool IsCatalogNamespace(Oid namespaceId)
Definition catalog.c:259
bool IsToastClass(Form_pg_class reltuple)
Definition catalog.c:228
bool IsCatalogRelation(Relation relation)
Definition catalog.c:106
bool IsPinnedObject(Oid classId, Oid objectId)
Definition catalog.c:397
bool IsSharedRelation(Oid relationId)
Definition catalog.c:331
bool IsCatalogRelationOid(Oid relid)
Definition catalog.c:123
bool IsInplaceUpdateRelation(Relation relation)
Definition catalog.c:185
bool IsReservedName(const char *name)
Definition catalog.c:305
bool IsInplaceUpdateOid(Oid relid)
Definition catalog.c:195
bool IsCatalogTextUniqueIndexOid(Oid relid)
Definition catalog.c:158
bool IsSystemClass(Oid relid, Form_pg_class reltuple)
Definition catalog.c:86
FormData_pg_class * Form_pg_class
Definition pg_class.h:160
unsigned int Oid
static int fb(int x)
Oid RelFileNumber
Definition relpath.h:25
const char * name