PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_tablespace.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_tablespace.h
4  * definition of the system "tablespace" relation (pg_tablespace)
5  * along with the relation's initial contents.
6  *
7  *
8  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
9  * Portions Copyright (c) 1994, Regents of the University of California
10  *
11  * src/include/catalog/pg_tablespace.h
12  *
13  * NOTES
14  * the genbki.pl script reads this file and generates .bki
15  * information from the DATA() statements.
16  *
17  *-------------------------------------------------------------------------
18  */
19 #ifndef PG_TABLESPACE_H
20 #define PG_TABLESPACE_H
21 
22 #include "catalog/genbki.h"
23 
24 /* ----------------
25  * pg_tablespace definition. cpp turns this into
26  * typedef struct FormData_pg_tablespace
27  * ----------------
28  */
29 #define TableSpaceRelationId 1213
30 
31 CATALOG(pg_tablespace,1213) BKI_SHARED_RELATION
32 {
33  NameData spcname; /* tablespace name */
34  Oid spcowner; /* owner of tablespace */
35 
36 #ifdef CATALOG_VARLEN /* variable-length fields start here */
37  aclitem spcacl[1]; /* access permissions */
38  text spcoptions[1]; /* per-tablespace options */
39 #endif
41 
42 /* ----------------
43  * Form_pg_tablespace corresponds to a pointer to a tuple with
44  * the format of pg_tablespace relation.
45  * ----------------
46  */
48 
49 /* ----------------
50  * compiler constants for pg_tablespace
51  * ----------------
52  */
53 
54 #define Natts_pg_tablespace 4
55 #define Anum_pg_tablespace_spcname 1
56 #define Anum_pg_tablespace_spcowner 2
57 #define Anum_pg_tablespace_spcacl 3
58 #define Anum_pg_tablespace_spcoptions 4
59 
60 DATA(insert OID = 1663 ( pg_default PGUID _null_ _null_ ));
61 DATA(insert OID = 1664 ( pg_global PGUID _null_ _null_ ));
62 
63 #define DEFAULTTABLESPACE_OID 1663
64 #define GLOBALTABLESPACE_OID 1664
65 
66 #endif /* PG_TABLESPACE_H */
#define BKI_SHARED_RELATION
Definition: genbki.h:27
unsigned int Oid
Definition: postgres_ext.h:31
CATALOG(pg_tablespace, 1213) BKI_SHARED_RELATION
Definition: pg_tablespace.h:31
Definition: c.h:488
FormData_pg_tablespace * Form_pg_tablespace
Definition: pg_tablespace.h:47
FormData_pg_tablespace
Definition: pg_tablespace.h:40
DATA(insert OID=1663(pg_default PGUID _null_ _null_))
Definition: c.h:434