PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_shseclabel.h
Go to the documentation of this file.
1 /* -------------------------------------------------------------------------
2  *
3  * pg_shseclabel.h
4  * definition of the system "security label" relation (pg_shseclabel)
5  *
6  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * -------------------------------------------------------------------------
10  */
11 #ifndef PG_SHSECLABEL_H
12 #define PG_SHSECLABEL_H
13 
14 #include "catalog/genbki.h"
15 
16 /* ----------------
17  * pg_shseclabel definition. cpp turns this into
18  * typedef struct FormData_pg_shseclabel
19  * ----------------
20  */
21 #define SharedSecLabelRelationId 3592
22 #define SharedSecLabelRelation_Rowtype_Id 4066
23 
25 {
26  Oid objoid; /* OID of the shared object itself */
27  Oid classoid; /* OID of table containing the shared object */
28 
29 #ifdef CATALOG_VARLEN /* variable-length fields start here */
30  text provider BKI_FORCE_NOT_NULL; /* name of label provider */
31  text label BKI_FORCE_NOT_NULL; /* security label of the object */
32 #endif
34 
36 
37 /* ----------------
38  * compiler constants for pg_shseclabel
39  * ----------------
40  */
41 #define Natts_pg_shseclabel 4
42 #define Anum_pg_shseclabel_objoid 1
43 #define Anum_pg_shseclabel_classoid 2
44 #define Anum_pg_shseclabel_provider 3
45 #define Anum_pg_shseclabel_label 4
46 
47 #endif /* PG_SHSECLABEL_H */
#define BKI_SCHEMA_MACRO
Definition: genbki.h:30
#define BKI_SHARED_RELATION
Definition: genbki.h:27
FormData_pg_shseclabel
Definition: pg_shseclabel.h:33
unsigned int Oid
Definition: postgres_ext.h:31
#define BKI_WITHOUT_OIDS
Definition: genbki.h:28
#define BKI_FORCE_NOT_NULL
Definition: genbki.h:32
#define BKI_ROWTYPE_OID(oid)
Definition: genbki.h:29
static char * label
Definition: pg_basebackup.c:84
CATALOG(pg_shseclabel, 3592) BKI_SHARED_RELATION BKI_ROWTYPE_OID(4066) BKI_WITHOUT_OIDS BKI_SCHEMA_MACRO
Definition: pg_shseclabel.h:24
FormData_pg_shseclabel * Form_pg_shseclabel
Definition: pg_shseclabel.h:35
Definition: c.h:435