1 /*-------------------------------------------------------------------------
4 * definition of the system "tablespace" relation (pg_tablespace)
5 * along with the relation's initial contents.
8 * Portions Copyright (c) 1996-2008, 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_TABLESPACE_H
20 #define PG_TABLESPACE_H
22 #include "catalog/genbki.h"
25 * pg_tablespace definition. cpp turns this into
26 * typedef struct FormData_pg_tablespace
29 #define TableSpaceRelationId 1213
31 CATALOG(pg_tablespace
,1213) BKI_SHARED_RELATION
33 NameData spcname
; /* tablespace name */
34 Oid spcowner
; /* owner of tablespace */
35 text spclocation
; /* physical location (VAR LENGTH) */
36 aclitem spcacl
[1]; /* access permissions (VAR LENGTH) */
37 } FormData_pg_tablespace
;
40 * Form_pg_tablespace corresponds to a pointer to a tuple with
41 * the format of pg_tablespace relation.
44 typedef FormData_pg_tablespace
*Form_pg_tablespace
;
47 * compiler constants for pg_tablespace
51 #define Natts_pg_tablespace 4
52 #define Anum_pg_tablespace_spcname 1
53 #define Anum_pg_tablespace_spcowner 2
54 #define Anum_pg_tablespace_spclocation 3
55 #define Anum_pg_tablespace_spcacl 4
57 DATA(insert OID
= 1663 ( pg_default PGUID
"" _null_
));
58 DATA(insert OID
= 1664 ( pg_global PGUID
"" _null_
));
60 #define DEFAULTTABLESPACE_OID 1663
61 #define GLOBALTABLESPACE_OID 1664
63 #endif /* PG_TABLESPACE_H */