Header And Logo

PostgreSQL
| The world's most advanced open source database.

pg_tablespace.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * pg_tablespace.h
00004  *    definition of the system "tablespace" relation (pg_tablespace)
00005  *    along with the relation's initial contents.
00006  *
00007  *
00008  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
00009  * Portions Copyright (c) 1994, Regents of the University of California
00010  *
00011  * src/include/catalog/pg_tablespace.h
00012  *
00013  * NOTES
00014  *    the genbki.pl script reads this file and generates .bki
00015  *    information from the DATA() statements.
00016  *
00017  *-------------------------------------------------------------------------
00018  */
00019 #ifndef PG_TABLESPACE_H
00020 #define PG_TABLESPACE_H
00021 
00022 #include "catalog/genbki.h"
00023 
00024 /* ----------------
00025  *      pg_tablespace definition.  cpp turns this into
00026  *      typedef struct FormData_pg_tablespace
00027  * ----------------
00028  */
00029 #define TableSpaceRelationId  1213
00030 
00031 CATALOG(pg_tablespace,1213) BKI_SHARED_RELATION
00032 {
00033     NameData    spcname;        /* tablespace name */
00034     Oid         spcowner;       /* owner of tablespace */
00035 
00036 #ifdef CATALOG_VARLEN           /* variable-length fields start here */
00037     aclitem     spcacl[1];      /* access permissions */
00038     text        spcoptions[1];  /* per-tablespace options */
00039 #endif
00040 } FormData_pg_tablespace;
00041 
00042 /* ----------------
00043  *      Form_pg_tablespace corresponds to a pointer to a tuple with
00044  *      the format of pg_tablespace relation.
00045  * ----------------
00046  */
00047 typedef FormData_pg_tablespace *Form_pg_tablespace;
00048 
00049 /* ----------------
00050  *      compiler constants for pg_tablespace
00051  * ----------------
00052  */
00053 
00054 #define Natts_pg_tablespace             4
00055 #define Anum_pg_tablespace_spcname      1
00056 #define Anum_pg_tablespace_spcowner     2
00057 #define Anum_pg_tablespace_spcacl       3
00058 #define Anum_pg_tablespace_spcoptions   4
00059 
00060 DATA(insert OID = 1663 ( pg_default PGUID _null_ _null_ ));
00061 DATA(insert OID = 1664 ( pg_global  PGUID _null_ _null_ ));
00062 
00063 #define DEFAULTTABLESPACE_OID 1663
00064 #define GLOBALTABLESPACE_OID 1664
00065 
00066 #endif   /* PG_TABLESPACE_H */