pg_parameter_acl.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_parameter_acl.h
  4. * definition of the "configuration parameter ACL" system catalog
  5. * (pg_parameter_acl).
  6. *
  7. *
  8. * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
  9. * Portions Copyright (c) 1994, Regents of the University of California
  10. *
  11. * src/include/catalog/pg_parameter_acl.h
  12. *
  13. * NOTES
  14. * The Catalog.pm module reads this file and derives schema
  15. * information.
  16. *
  17. *-------------------------------------------------------------------------
  18. */
  19. #ifndef PG_PARAMETER_ACL_H
  20. #define PG_PARAMETER_ACL_H
  21. #include "catalog/genbki.h"
  22. #include "catalog/pg_parameter_acl_d.h"
  23. /* ----------------
  24. * pg_parameter_acl definition. cpp turns this into
  25. * typedef struct FormData_pg_parameter_acl
  26. * ----------------
  27. */
  28. CATALOG(pg_parameter_acl,6243,ParameterAclRelationId) BKI_SHARED_RELATION
  29. {
  30. Oid oid; /* oid */
  31. #ifdef CATALOG_VARLEN /* variable-length fields start here */
  32. /* name of parameter */
  33. text parname BKI_FORCE_NOT_NULL;
  34. /* access permissions */
  35. aclitem paracl[1] BKI_DEFAULT(_null_);
  36. #endif
  37. } FormData_pg_parameter_acl;
  38. /* ----------------
  39. * Form_pg_parameter_acl corresponds to a pointer to a tuple with
  40. * the format of pg_parameter_acl relation.
  41. * ----------------
  42. */
  43. typedef FormData_pg_parameter_acl * Form_pg_parameter_acl;
  44. DECLARE_TOAST_WITH_MACRO(pg_parameter_acl, 6244, 6245, PgParameterAclToastTable, PgParameterAclToastIndex);
  45. DECLARE_UNIQUE_INDEX(pg_parameter_acl_parname_index, 6246, ParameterAclParnameIndexId, on pg_parameter_acl using btree(parname text_ops));
  46. DECLARE_UNIQUE_INDEX_PKEY(pg_parameter_acl_oid_index, 6247, ParameterAclOidIndexId, on pg_parameter_acl using btree(oid oid_ops));
  47. extern Oid ParameterAclLookup(const char *parameter, bool missing_ok);
  48. extern Oid ParameterAclCreate(const char *parameter);
  49. #endif /* PG_PARAMETER_ACL_H */