1 /*-------------------------------------------------------------------------
4 * definition of the system "namespace" relation (pg_namespace)
5 * along with the relation's initial contents.
8 * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
11 * src/include/catalog/pg_namespace.h
14 * the genbki.pl script reads this file and generates .bki
15 * information from the DATA() statements.
17 *-------------------------------------------------------------------------
19 #ifndef PG_NAMESPACE_H
20 #define PG_NAMESPACE_H
22 #include "catalog/genbki.h"
24 /* ----------------------------------------------------------------
25 * pg_namespace definition.
27 * cpp turns this into typedef struct FormData_pg_namespace
29 * nspname name of the namespace
30 * nspowner owner (creator) of the namespace
31 * nspacl access privilege list
32 * ----------------------------------------------------------------
34 #define NamespaceRelationId 2615
36 CATALOG(pg_namespace,2615)
41 #ifdef CATALOG_VARLEN /* variable-length fields start here */
44 } FormData_pg_namespace;
47 * Form_pg_namespace corresponds to a pointer to a tuple with
48 * the format of pg_namespace relation.
51 typedef FormData_pg_namespace *Form_pg_namespace;
54 * compiler constants for pg_namespace
58 #define Natts_pg_namespace 3
59 #define Anum_pg_namespace_nspname 1
60 #define Anum_pg_namespace_nspowner 2
61 #define Anum_pg_namespace_nspacl 3
65 * initial contents of pg_namespace
69 DATA(insert OID = 11 ( "pg_catalog" PGUID _null_ ));
70 DESCR("system catalog schema");
71 #define PG_CATALOG_NAMESPACE 11
72 DATA(insert OID = 99 ( "pg_toast" PGUID _null_ ));
73 DESCR("reserved schema for TOAST tables");
74 #define PG_TOAST_NAMESPACE 99
75 DATA(insert OID = 2200 ( "public" PGUID _null_ ));
76 DESCR("standard public schema");
77 #define PG_PUBLIC_NAMESPACE 2200
81 * prototypes for functions in pg_namespace.c
83 extern Oid NamespaceCreate(const char *nspName, Oid ownerId, bool isTemp);
85 #endif /* PG_NAMESPACE_H */