pg_seclabel.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* -------------------------------------------------------------------------
  2. *
  3. * pg_seclabel.h
  4. * definition of the system "security label" relation (pg_seclabel)
  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_SECLABEL_H
  12. #define PG_SECLABEL_H
  13. #include "catalog/genbki.h"
  14. /* ----------------
  15. * pg_seclabel definition. cpp turns this into
  16. * typedef struct FormData_pg_seclabel
  17. * ----------------
  18. */
  19. #define SecLabelRelationId 3596
  20. CATALOG(pg_seclabel,3596) BKI_WITHOUT_OIDS
  21. {
  22. Oid objoid; /* OID of the object itself */
  23. Oid classoid; /* OID of table containing the object */
  24. int32 objsubid; /* column number, or 0 if not used */
  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_seclabel;
  30. /* ----------------
  31. * compiler constants for pg_seclabel
  32. * ----------------
  33. */
  34. #define Natts_pg_seclabel 5
  35. #define Anum_pg_seclabel_objoid 1
  36. #define Anum_pg_seclabel_classoid 2
  37. #define Anum_pg_seclabel_objsubid 3
  38. #define Anum_pg_seclabel_provider 4
  39. #define Anum_pg_seclabel_label 5
  40. #endif /* PG_SECLABEL_H */