00001 /* ------------------------------------------------------------------------- 00002 * 00003 * pg_shseclabel.h 00004 * definition of the system "security label" relation (pg_shseclabel) 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_SHSECLABEL_H 00012 #define PG_SHSECLABEL_H 00013 00014 #include "catalog/genbki.h" 00015 00016 /* ---------------- 00017 * pg_shseclabel definition. cpp turns this into 00018 * typedef struct FormData_pg_shseclabel 00019 * ---------------- 00020 */ 00021 #define SharedSecLabelRelationId 3592 00022 00023 CATALOG(pg_shseclabel,3592) BKI_SHARED_RELATION BKI_WITHOUT_OIDS 00024 { 00025 Oid objoid; /* OID of the shared object itself */ 00026 Oid classoid; /* OID of table containing the shared object */ 00027 00028 #ifdef CATALOG_VARLEN /* variable-length fields start here */ 00029 text provider; /* name of label provider */ 00030 text label; /* security label of the object */ 00031 #endif 00032 } FormData_pg_shseclabel; 00033 00034 /* ---------------- 00035 * compiler constants for pg_shseclabel 00036 * ---------------- 00037 */ 00038 #define Natts_pg_shseclabel 4 00039 #define Anum_pg_shseclabel_objoid 1 00040 #define Anum_pg_shseclabel_classoid 2 00041 #define Anum_pg_shseclabel_provider 3 00042 #define Anum_pg_shseclabel_label 4 00043 00044 #endif /* PG_SHSECLABEL_H */