pg_auth_members.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_auth_members.h
  4. * definition of the "authorization identifier members" system catalog
  5. * (pg_auth_members).
  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_auth_members.h
  12. *
  13. * NOTES
  14. * The Catalog.pm module reads this file and derives schema
  15. * information.
  16. *
  17. *-------------------------------------------------------------------------
  18. */
  19. #ifndef PG_AUTH_MEMBERS_H
  20. #define PG_AUTH_MEMBERS_H
  21. #include "catalog/genbki.h"
  22. #include "catalog/pg_auth_members_d.h"
  23. /* ----------------
  24. * pg_auth_members definition. cpp turns this into
  25. * typedef struct FormData_pg_auth_members
  26. * ----------------
  27. */
  28. CATALOG(pg_auth_members,1261,AuthMemRelationId) BKI_SHARED_RELATION BKI_ROWTYPE_OID(2843,AuthMemRelation_Rowtype_Id) BKI_SCHEMA_MACRO
  29. {
  30. Oid roleid BKI_LOOKUP(pg_authid); /* ID of a role */
  31. Oid member BKI_LOOKUP(pg_authid); /* ID of a member of that role */
  32. Oid grantor BKI_LOOKUP(pg_authid); /* who granted the membership */
  33. bool admin_option; /* granted with admin option? */
  34. } FormData_pg_auth_members;
  35. /* ----------------
  36. * Form_pg_auth_members corresponds to a pointer to a tuple with
  37. * the format of pg_auth_members relation.
  38. * ----------------
  39. */
  40. typedef FormData_pg_auth_members *Form_pg_auth_members;
  41. DECLARE_UNIQUE_INDEX_PKEY(pg_auth_members_role_member_index, 2694, AuthMemRoleMemIndexId, on pg_auth_members using btree(roleid oid_ops, member oid_ops));
  42. DECLARE_UNIQUE_INDEX(pg_auth_members_member_role_index, 2695, AuthMemMemRoleIndexId, on pg_auth_members using btree(member oid_ops, roleid oid_ops));
  43. #endif /* PG_AUTH_MEMBERS_H */