PostgreSQL Source Code  git master
pg_tablespace.h File Reference
#include "catalog/genbki.h"
#include "catalog/pg_tablespace_d.h"
Include dependency graph for pg_tablespace.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PgTablespaceToastTable   4185
 
#define PgTablespaceToastIndex   4186
 
#define TablespaceOidIndexId   2697
 
#define TablespaceNameIndexId   2698
 

Typedefs

typedef FormData_pg_tablespaceForm_pg_tablespace
 

Functions

 CATALOG (pg_tablespace, 1213, TableSpaceRelationId) BKI_SHARED_RELATION
 
 DECLARE_TOAST (pg_tablespace, 4185, 4186)
 
 DECLARE_UNIQUE_INDEX_PKEY (pg_tablespace_oid_index, 2697, on pg_tablespace using btree(oid oid_ops))
 
 DECLARE_UNIQUE_INDEX (pg_tablespace_spcname_index, 2698, on pg_tablespace using btree(spcname name_ops))
 

Variables

 FormData_pg_tablespace
 

Macro Definition Documentation

◆ PgTablespaceToastIndex

#define PgTablespaceToastIndex   4186

Definition at line 52 of file pg_tablespace.h.

Referenced by IsSharedRelation().

◆ PgTablespaceToastTable

#define PgTablespaceToastTable   4185

Definition at line 51 of file pg_tablespace.h.

Referenced by IsSharedRelation().

◆ TablespaceNameIndexId

#define TablespaceNameIndexId   2698

Definition at line 57 of file pg_tablespace.h.

Referenced by IsSharedRelation().

◆ TablespaceOidIndexId

#define TablespaceOidIndexId   2697

Definition at line 55 of file pg_tablespace.h.

Referenced by CreateTableSpace(), and IsSharedRelation().

Typedef Documentation

◆ Form_pg_tablespace

Definition at line 48 of file pg_tablespace.h.

Function Documentation

◆ CATALOG()

CATALOG ( pg_tablespace  ,
1213  ,
TableSpaceRelationId   
)

Definition at line 29 of file pg_tablespace.h.

References BKI_DEFAULT, and BKI_LOOKUP.

30 {
31  Oid oid; /* oid */
32  NameData spcname; /* tablespace name */
33 
34  /* owner of tablespace */
35  Oid spcowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid);
36 
37 #ifdef CATALOG_VARLEN /* variable-length fields start here */
38  aclitem spcacl[1]; /* access permissions */
39  text spcoptions[1]; /* per-tablespace options */
40 #endif
unsigned int Oid
Definition: postgres_ext.h:31
#define BKI_DEFAULT(value)
Definition: genbki.h:35
Definition: c.h:675
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46
FormData_pg_tablespace
Definition: pg_tablespace.h:41
Definition: c.h:621

◆ DECLARE_TOAST()

DECLARE_TOAST ( pg_tablespace  ,
4185  ,
4186   
)

◆ DECLARE_UNIQUE_INDEX()

DECLARE_UNIQUE_INDEX ( pg_tablespace_spcname_index  ,
2698  ,
on pg_tablespace using   btreespcname name_ops 
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_tablespace_oid_index  ,
2697  ,
on pg_tablespace using   btreeoid oid_ops 
)

Variable Documentation

◆ FormData_pg_tablespace

FormData_pg_tablespace

Definition at line 41 of file pg_tablespace.h.