diff options
| author | Tom Lane | 2002-04-12 20:38:31 +0000 |
|---|---|---|
| committer | Tom Lane | 2002-04-12 20:38:31 +0000 |
| commit | 9999f5a10e722c052006886b678995695001958a (patch) | |
| tree | ee8b463a3369b5b4283ebb5aa893549de7c3fc45 /src/include | |
| parent | 79b60cb132824a4939178b3ce9ded5c220a0f179 (diff) | |
Checking to decide whether relations are system relations now depends
on the namespace not the name; pg_ is not a reserved prefix for table
names anymore. From Fernando Nasser.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/catalog/catalog.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/include/catalog/catalog.h b/src/include/catalog/catalog.h index 62cc5736f7f..255bb265c4c 100644 --- a/src/include/catalog/catalog.h +++ b/src/include/catalog/catalog.h @@ -7,22 +7,29 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: catalog.h,v 1.22 2002/03/22 21:34:44 tgl Exp $ + * $Id: catalog.h,v 1.23 2002/04/12 20:38:30 tgl Exp $ * *------------------------------------------------------------------------- */ #ifndef CATALOG_H #define CATALOG_H -#include "access/tupdesc.h" +#include "utils/rel.h" -#include "storage/relfilenode.h" extern char *relpath(RelFileNode rnode); extern char *GetDatabasePath(Oid tblNode); -extern bool IsSystemRelationName(const char *relname); -extern bool IsToastRelationName(const char *relname); +extern bool IsSystemRelation(Relation relation); +extern bool IsToastRelation(Relation relation); + +extern bool IsSystemClass(Form_pg_class reltuple); +extern bool IsToastClass(Form_pg_class reltuple); + +extern bool IsSystemNamespace(Oid namespaceId); +extern bool IsToastNamespace(Oid namespaceId); + +extern bool IsReservedName(const char *name); extern bool IsSharedSystemRelationName(const char *relname); extern Oid newoid(void); |
