PostgreSQL Source Code  git master
pg_seclabel.h
Go to the documentation of this file.
1 /* -------------------------------------------------------------------------
2  *
3  * pg_seclabel.h
4  * definition of the system "security label" relation (pg_seclabel)
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_SECLABEL_H
12 #define PG_SECLABEL_H
13 
14 #include "catalog/genbki.h"
15 
16 /* ----------------
17  * pg_seclabel definition. cpp turns this into
18  * typedef struct FormData_pg_seclabel
19  * ----------------
20  */
21 #define SecLabelRelationId 3596
22 
23 CATALOG(pg_seclabel,3596) BKI_WITHOUT_OIDS
24 {
25  Oid objoid; /* OID of the object itself */
26  Oid classoid; /* OID of table containing the object */
27  int32 objsubid; /* column number, or 0 if not used */
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 
35 /* ----------------
36  * compiler constants for pg_seclabel
37  * ----------------
38  */
39 #define Natts_pg_seclabel 5
40 #define Anum_pg_seclabel_objoid 1
41 #define Anum_pg_seclabel_classoid 2
42 #define Anum_pg_seclabel_objsubid 3
43 #define Anum_pg_seclabel_provider 4
44 #define Anum_pg_seclabel_label 5
45 
46 #endif /* PG_SECLABEL_H */
unsigned int Oid
Definition: postgres_ext.h:31
signed int int32
Definition: c.h:294
#define BKI_WITHOUT_OIDS
Definition: genbki.h:28
#define BKI_FORCE_NOT_NULL
Definition: genbki.h:32
static char * label
Definition: pg_basebackup.c:82
CATALOG(pg_seclabel, 3596) BKI_WITHOUT_OIDS
Definition: pg_seclabel.h:23
Definition: c.h:497
FormData_pg_seclabel
Definition: pg_seclabel.h:33