1
/*-------------------------------------------------------------------------
4
* definition of the system "namespace" relation (pg_namespace)
5
* along with the relation's initial contents.
8
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
9
* Portions Copyright (c) 1994, Regents of the University of California
14
* the genbki.sh 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)
40
aclitem nspacl[1]; /* VARIABLE LENGTH FIELD */
41
} FormData_pg_namespace;
44
* Form_pg_namespace corresponds to a pointer to a tuple with
45
* the format of pg_namespace relation.
48
typedef FormData_pg_namespace *Form_pg_namespace;
51
* compiler constants for pg_namespace
55
#define Natts_pg_namespace 3
56
#define Anum_pg_namespace_nspname 1
57
#define Anum_pg_namespace_nspowner 2
58
#define Anum_pg_namespace_nspacl 3
62
* initial contents of pg_namespace
66
DATA(insert OID = 11 ( "pg_catalog" PGUID _null_ ));
67
DESCR("system catalog schema");
68
#define PG_CATALOG_NAMESPACE 11
69
DATA(insert OID = 99 ( "pg_toast" PGUID _null_ ));
70
DESCR("reserved schema for TOAST tables");
71
#define PG_TOAST_NAMESPACE 99
72
DATA(insert OID = 2200 ( "public" PGUID _null_ ));
73
DESCR("standard public schema");
74
#define PG_PUBLIC_NAMESPACE 2200
78
* prototypes for functions in pg_namespace.c
80
extern Oid NamespaceCreate(const char *nspName, Oid ownerId);
82
#endif /* PG_NAMESPACE_H */