pg_shseclabel.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* -------------------------------------------------------------------------
  2. *
  3. * pg_shseclabel.h
  4. * definition of the system "security label" relation (pg_shseclabel)
  5. *
  6. * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
  7. * Portions Copyright (c) 1994, Regents of the University of California
  8. *
  9. * -------------------------------------------------------------------------
  10. */
  11. #ifndef PG_SHSECLABEL_H
  12. #define PG_SHSECLABEL_H
  13. #include "catalog/genbki.h"
  14. /* ----------------
  15. * pg_shseclabel definition. cpp turns this into
  16. * typedef struct FormData_pg_shseclabel
  17. * ----------------
  18. */
  19. #define SharedSecLabelRelationId 3592
  20. #define SharedSecLabelRelation_Rowtype_Id 4066
  21. CATALOG(pg_shseclabel,3592) BKI_SHARED_RELATION BKI_ROWTYPE_OID(4066) BKI_WITHOUT_OIDS BKI_SCHEMA_MACRO
  22. {
  23. Oid objoid; /* OID of the shared object itself */
  24. Oid classoid; /* OID of table containing the shared object */
  25. #ifdef CATALOG_VARLEN /* variable-length fields start here */
  26. text provider BKI_FORCE_NOT_NULL; /* name of label provider */
  27. text label BKI_FORCE_NOT_NULL; /* security label of the object */
  28. #endif
  29. } FormData_pg_shseclabel;
  30. typedef FormData_pg_shseclabel *Form_pg_shseclabel;
  31. /* ----------------
  32. * compiler constants for pg_shseclabel
  33. * ----------------
  34. */
  35. #define Natts_pg_shseclabel 4
  36. #define Anum_pg_shseclabel_objoid 1
  37. #define Anum_pg_shseclabel_classoid 2
  38. #define Anum_pg_shseclabel_provider 3
  39. #define Anum_pg_shseclabel_label 4
  40. #endif /* PG_SHSECLABEL_H */