pg_seclabel.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* -------------------------------------------------------------------------
  2. *
  3. * pg_seclabel.h
  4. * definition of the "security label" system catalog (pg_seclabel)
  5. *
  6. * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
  7. * Portions Copyright (c) 1994, Regents of the University of California
  8. *
  9. * src/include/catalog/pg_seclabel.h
  10. *
  11. * NOTES
  12. * The Catalog.pm module reads this file and derives schema
  13. * information.
  14. *
  15. * -------------------------------------------------------------------------
  16. */
  17. #ifndef PG_SECLABEL_H
  18. #define PG_SECLABEL_H
  19. #include "catalog/genbki.h"
  20. #include "catalog/pg_seclabel_d.h"
  21. /* ----------------
  22. * pg_seclabel definition. cpp turns this into
  23. * typedef struct FormData_pg_seclabel
  24. * ----------------
  25. */
  26. CATALOG(pg_seclabel,3596,SecLabelRelationId)
  27. {
  28. Oid objoid; /* OID of the object itself */
  29. Oid classoid BKI_LOOKUP(pg_class); /* OID of table containing the
  30. * object */
  31. int32 objsubid; /* column number, or 0 if not used */
  32. #ifdef CATALOG_VARLEN /* variable-length fields start here */
  33. text provider BKI_FORCE_NOT_NULL; /* name of label provider */
  34. text label BKI_FORCE_NOT_NULL; /* security label of the object */
  35. #endif
  36. } FormData_pg_seclabel;
  37. DECLARE_TOAST(pg_seclabel, 3598, 3599);
  38. DECLARE_UNIQUE_INDEX_PKEY(pg_seclabel_object_index, 3597, SecLabelObjectIndexId, on pg_seclabel using btree(objoid oid_ops, classoid oid_ops, objsubid int4_ops, provider text_ops));
  39. #endif /* PG_SECLABEL_H */