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 "security label" system catalog (pg_seclabel)
5  *
6  * Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * src/include/catalog/pg_seclabel.h
10  *
11  * NOTES
12  * The Catalog.pm module reads this file and derives schema
13  * information.
14  *
15  * -------------------------------------------------------------------------
16  */
17 #ifndef PG_SECLABEL_H
18 #define PG_SECLABEL_H
19 
20 #include "catalog/genbki.h"
21 #include "catalog/pg_seclabel_d.h"
22 
23 /* ----------------
24  * pg_seclabel definition. cpp turns this into
25  * typedef struct FormData_pg_seclabel
26  * ----------------
27  */
28 CATALOG(pg_seclabel,3596,SecLabelRelationId) BKI_WITHOUT_OIDS
29 {
30  Oid objoid; /* OID of the object itself */
31  Oid classoid; /* OID of table containing the object */
32  int32 objsubid; /* column number, or 0 if not used */
33 
34 #ifdef CATALOG_VARLEN /* variable-length fields start here */
35  text provider BKI_FORCE_NOT_NULL; /* name of label provider */
36  text label BKI_FORCE_NOT_NULL; /* security label of the object */
37 #endif
39 
40 #endif /* PG_SECLABEL_H */
CATALOG(pg_seclabel, 3596, SecLabelRelationId) BKI_WITHOUT_OIDS
Definition: pg_seclabel.h:28
unsigned int Oid
Definition: postgres_ext.h:31
signed int int32
Definition: c.h:313
#define BKI_WITHOUT_OIDS
Definition: genbki.h:28
#define BKI_FORCE_NOT_NULL
Definition: genbki.h:34
static JitProviderCallbacks provider
Definition: jit.c:46
Oid classoid
Definition: pg_shseclabel.h:31
static char * label
Definition: pg_basebackup.c:84
Definition: c.h:516
FormData_pg_seclabel
Definition: pg_seclabel.h:38