pg_tablespace.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_tablespace.h
  4. * definition of the system "tablespace" relation (pg_tablespace)
  5. * along with the relation's initial contents.
  6. *
  7. *
  8. * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
  9. * Portions Copyright (c) 1994, Regents of the University of California
  10. *
  11. * src/include/catalog/pg_tablespace.h
  12. *
  13. * NOTES
  14. * the genbki.pl script reads this file and generates .bki
  15. * information from the DATA() statements.
  16. *
  17. *-------------------------------------------------------------------------
  18. */
  19. #ifndef PG_TABLESPACE_H
  20. #define PG_TABLESPACE_H
  21. #include "catalog/genbki.h"
  22. /* ----------------
  23. * pg_tablespace definition. cpp turns this into
  24. * typedef struct FormData_pg_tablespace
  25. * ----------------
  26. */
  27. #define TableSpaceRelationId 1213
  28. CATALOG(pg_tablespace,1213) BKI_SHARED_RELATION
  29. {
  30. NameData spcname; /* tablespace name */
  31. Oid spcowner; /* owner of tablespace */
  32. #ifdef CATALOG_VARLEN /* variable-length fields start here */
  33. aclitem spcacl[1]; /* access permissions */
  34. text spcoptions[1]; /* per-tablespace options */
  35. #endif
  36. } FormData_pg_tablespace;
  37. /* ----------------
  38. * Form_pg_tablespace corresponds to a pointer to a tuple with
  39. * the format of pg_tablespace relation.
  40. * ----------------
  41. */
  42. typedef FormData_pg_tablespace *Form_pg_tablespace;
  43. /* ----------------
  44. * compiler constants for pg_tablespace
  45. * ----------------
  46. */
  47. #define Natts_pg_tablespace 4
  48. #define Anum_pg_tablespace_spcname 1
  49. #define Anum_pg_tablespace_spcowner 2
  50. #define Anum_pg_tablespace_spcacl 3
  51. #define Anum_pg_tablespace_spcoptions 4
  52. DATA(insert OID = 1663 ( pg_default PGUID _null_ _null_ ));
  53. DATA(insert OID = 1664 ( pg_global PGUID _null_ _null_ ));
  54. #define DEFAULTTABLESPACE_OID 1663
  55. #define GLOBALTABLESPACE_OID 1664
  56. #endif /* PG_TABLESPACE_H */