2011-07-20 19:18:24 +02:00
|
|
|
/* -------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* pg_shseclabel.h
|
2012-06-10 21:20:04 +02:00
|
|
|
* definition of the system "security label" relation (pg_shseclabel)
|
2011-07-20 19:18:24 +02:00
|
|
|
*
|
2017-01-03 19:48:53 +01:00
|
|
|
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
|
2011-07-20 19:18:24 +02:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_SHSECLABEL_H
|
|
|
|
#define PG_SHSECLABEL_H
|
|
|
|
|
|
|
|
#include "catalog/genbki.h"
|
|
|
|
|
|
|
|
/* ----------------
|
|
|
|
* pg_shseclabel definition. cpp turns this into
|
|
|
|
* typedef struct FormData_pg_shseclabel
|
|
|
|
* ----------------
|
|
|
|
*/
|
2016-01-05 18:50:53 +01:00
|
|
|
#define SharedSecLabelRelationId 3592
|
|
|
|
#define SharedSecLabelRelation_Rowtype_Id 4066
|
2011-07-20 19:18:24 +02:00
|
|
|
|
2016-01-05 18:50:53 +01:00
|
|
|
CATALOG(pg_shseclabel,3592) BKI_SHARED_RELATION BKI_ROWTYPE_OID(4066) BKI_WITHOUT_OIDS BKI_SCHEMA_MACRO
|
2011-07-20 19:18:24 +02:00
|
|
|
{
|
2012-06-10 21:20:04 +02:00
|
|
|
Oid objoid; /* OID of the shared object itself */
|
|
|
|
Oid classoid; /* OID of table containing the shared object */
|
|
|
|
|
|
|
|
#ifdef CATALOG_VARLEN /* variable-length fields start here */
|
2017-06-21 20:39:04 +02:00
|
|
|
text provider BKI_FORCE_NOT_NULL; /* name of label provider */
|
|
|
|
text label BKI_FORCE_NOT_NULL; /* security label of the
|
|
|
|
* object */
|
2012-01-27 19:16:17 +01:00
|
|
|
#endif
|
2011-07-20 19:18:24 +02:00
|
|
|
} FormData_pg_shseclabel;
|
|
|
|
|
2017-06-21 20:39:04 +02:00
|
|
|
typedef FormData_pg_shseclabel * Form_pg_shseclabel;
|
2016-01-05 18:50:53 +01:00
|
|
|
|
2011-07-20 19:18:24 +02:00
|
|
|
/* ----------------
|
|
|
|
* compiler constants for pg_shseclabel
|
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
#define Natts_pg_shseclabel 4
|
|
|
|
#define Anum_pg_shseclabel_objoid 1
|
|
|
|
#define Anum_pg_shseclabel_classoid 2
|
|
|
|
#define Anum_pg_shseclabel_provider 3
|
|
|
|
#define Anum_pg_shseclabel_label 4
|
|
|
|
|
2012-06-10 21:20:04 +02:00
|
|
|
#endif /* PG_SHSECLABEL_H */
|