pg_tablespace.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_tablespace.h
  4. * definition of the "tablespace" system catalog (pg_tablespace)
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
  8. * Portions Copyright (c) 1994, Regents of the University of California
  9. *
  10. * src/include/catalog/pg_tablespace.h
  11. *
  12. * NOTES
  13. * The Catalog.pm module reads this file and derives schema
  14. * information.
  15. *
  16. *-------------------------------------------------------------------------
  17. */
  18. #ifndef PG_TABLESPACE_H
  19. #define PG_TABLESPACE_H
  20. #include "catalog/genbki.h"
  21. #include "catalog/pg_tablespace_d.h"
  22. /* ----------------
  23. * pg_tablespace definition. cpp turns this into
  24. * typedef struct FormData_pg_tablespace
  25. * ----------------
  26. */
  27. CATALOG(pg_tablespace,1213,TableSpaceRelationId) BKI_SHARED_RELATION
  28. {
  29. Oid oid; /* oid */
  30. NameData spcname; /* tablespace name */
  31. /* owner of tablespace */
  32. Oid spcowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid);
  33. #ifdef CATALOG_VARLEN /* variable-length fields start here */
  34. aclitem spcacl[1]; /* access permissions */
  35. text spcoptions[1]; /* per-tablespace options */
  36. #endif
  37. } FormData_pg_tablespace;
  38. /* ----------------
  39. * Form_pg_tablespace corresponds to a pointer to a tuple with
  40. * the format of pg_tablespace relation.
  41. * ----------------
  42. */
  43. typedef FormData_pg_tablespace *Form_pg_tablespace;
  44. DECLARE_TOAST_WITH_MACRO(pg_tablespace, 4185, 4186, PgTablespaceToastTable, PgTablespaceToastIndex);
  45. DECLARE_UNIQUE_INDEX_PKEY(pg_tablespace_oid_index, 2697, TablespaceOidIndexId, on pg_tablespace using btree(oid oid_ops));
  46. DECLARE_UNIQUE_INDEX(pg_tablespace_spcname_index, 2698, TablespaceNameIndexId, on pg_tablespace using btree(spcname name_ops));
  47. #endif /* PG_TABLESPACE_H */