OSDN Git Service

38d4d4c2fd5a4147514e654994ea84281c5b582e
[pg-rex/syncrep.git] / src / include / catalog / catalog.h
1 /*-------------------------------------------------------------------------
2  *
3  * catalog.h
4  *        prototypes for functions in backend/catalog/catalog.c
5  *
6  *
7  * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: catalog.h,v 1.25 2002/06/20 20:29:43 momjian Exp $
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef CATALOG_H
15 #define CATALOG_H
16
17 #include "utils/rel.h"
18
19
20 extern char *relpath(RelFileNode rnode);
21 extern char *GetDatabasePath(Oid tblNode);
22
23 extern bool IsSystemRelation(Relation relation);
24 extern bool IsToastRelation(Relation relation);
25
26 extern bool IsSystemClass(Form_pg_class reltuple);
27 extern bool IsToastClass(Form_pg_class reltuple);
28
29 extern bool IsSystemNamespace(Oid namespaceId);
30 extern bool IsToastNamespace(Oid namespaceId);
31
32 extern bool IsReservedName(const char *name);
33
34 extern Oid      newoid(void);
35
36 #endif   /* CATALOG_H */