Header And Logo

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

pg_seclabel.h

Go to the documentation of this file.
00001 /* -------------------------------------------------------------------------
00002  *
00003  * pg_seclabel.h
00004  *    definition of the system "security label" relation (pg_seclabel)
00005  *
00006  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
00007  * Portions Copyright (c) 1994, Regents of the University of California
00008  *
00009  * -------------------------------------------------------------------------
00010  */
00011 #ifndef PG_SECLABEL_H
00012 #define PG_SECLABEL_H
00013 
00014 #include "catalog/genbki.h"
00015 
00016 /* ----------------
00017  *      pg_seclabel definition.  cpp turns this into
00018  *      typedef struct FormData_pg_seclabel
00019  * ----------------
00020  */
00021 #define SecLabelRelationId      3596
00022 
00023 CATALOG(pg_seclabel,3596) BKI_WITHOUT_OIDS
00024 {
00025     Oid         objoid;         /* OID of the object itself */
00026     Oid         classoid;       /* OID of table containing the object */
00027     int32       objsubid;       /* column number, or 0 if not used */
00028 
00029 #ifdef CATALOG_VARLEN           /* variable-length fields start here */
00030     text        provider;       /* name of label provider */
00031     text        label;          /* security label of the object */
00032 #endif
00033 } FormData_pg_seclabel;
00034 
00035 /* ----------------
00036  *      compiler constants for pg_seclabel
00037  * ----------------
00038  */
00039 #define Natts_pg_seclabel           5
00040 #define Anum_pg_seclabel_objoid     1
00041 #define Anum_pg_seclabel_classoid   2
00042 #define Anum_pg_seclabel_objsubid   3
00043 #define Anum_pg_seclabel_provider   4
00044 #define Anum_pg_seclabel_label      5
00045 
00046 #endif   /* PG_SECLABEL_H */