Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
catalog.h46 linesDownload Raw Back to catalog
1/*-------------------------------------------------------------------------2 *3 * catalog.h4 *	  prototypes for functions in backend/catalog/catalog.c5 *6 *7 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group8 * Portions Copyright (c) 1994, Regents of the University of California9 *10 * src/include/catalog/catalog.h11 *12 *-------------------------------------------------------------------------13 */14#ifndef CATALOG_H15#define CATALOG_H16 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);24 25extern bool IsSystemClass(Oid relid, Form_pg_class reltuple);26extern bool IsToastClass(Form_pg_class reltuple);27 28extern bool IsCatalogRelationOid(Oid relid);29 30extern bool IsCatalogNamespace(Oid namespaceId);31extern bool IsToastNamespace(Oid namespaceId);32 33extern bool IsReservedName(const char *name);34 35extern bool IsSharedRelation(Oid relationId);36 37extern bool IsPinnedObject(Oid classId, Oid objectId);38 39extern Oid	GetNewOidWithIndex(Relation relation, Oid indexId,40							   AttrNumber oidcolumn);41extern RelFileNumber GetNewRelFileNumber(Oid reltablespace,42										 Relation pg_class,43										 char relpersistence);44 45#endif							/* CATALOG_H */46 
codekingpro/portable-devtools · Team Ai