pg_amcheck: Fix test failure on Windows with non-existing role
[pgsql.git] / src / include / catalog / catalog.h
blobb3a3acf2aec2b7dd2adf70597e00ddfee7833de5
1 /*-------------------------------------------------------------------------
3 * catalog.h
4 * prototypes for functions in backend/catalog/catalog.c
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/catalog/catalog.h
12 *-------------------------------------------------------------------------
14 #ifndef CATALOG_H
15 #define CATALOG_H
17 #include "catalog/pg_class.h"
18 #include "utils/relcache.h"
21 extern bool IsSystemRelation(Relation relation);
22 extern bool IsToastRelation(Relation relation);
23 extern bool IsCatalogRelation(Relation relation);
24 extern bool IsInplaceUpdateRelation(Relation relation);
26 extern bool IsSystemClass(Oid relid, Form_pg_class reltuple);
27 extern bool IsToastClass(Form_pg_class reltuple);
29 extern bool IsCatalogRelationOid(Oid relid);
30 extern bool IsInplaceUpdateOid(Oid relid);
32 extern bool IsCatalogNamespace(Oid namespaceId);
33 extern bool IsToastNamespace(Oid namespaceId);
35 extern bool IsReservedName(const char *name);
37 extern bool IsSharedRelation(Oid relationId);
39 extern bool IsPinnedObject(Oid classId, Oid objectId);
41 extern Oid GetNewOidWithIndex(Relation relation, Oid indexId,
42 AttrNumber oidcolumn);
43 extern RelFileNumber GetNewRelFileNumber(Oid reltablespace,
44 Relation pg_class,
45 char relpersistence);
47 #endif /* CATALOG_H */