pg_inherits.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_inherits.h
  4. * definition of the system "inherits" relation (pg_inherits)
  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_inherits.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_INHERITS_H
  20. #define PG_INHERITS_H
  21. #include "catalog/genbki.h"
  22. /* ----------------
  23. * pg_inherits definition. cpp turns this into
  24. * typedef struct FormData_pg_inherits
  25. * ----------------
  26. */
  27. #define InheritsRelationId 2611
  28. CATALOG(pg_inherits,2611) BKI_WITHOUT_OIDS
  29. {
  30. Oid inhrelid;
  31. Oid inhparent;
  32. int32 inhseqno;
  33. } FormData_pg_inherits;
  34. /* ----------------
  35. * Form_pg_inherits corresponds to a pointer to a tuple with
  36. * the format of pg_inherits relation.
  37. * ----------------
  38. */
  39. typedef FormData_pg_inherits *Form_pg_inherits;
  40. /* ----------------
  41. * compiler constants for pg_inherits
  42. * ----------------
  43. */
  44. #define Natts_pg_inherits 3
  45. #define Anum_pg_inherits_inhrelid 1
  46. #define Anum_pg_inherits_inhparent 2
  47. #define Anum_pg_inherits_inhseqno 3
  48. /* ----------------
  49. * pg_inherits has no initial contents
  50. * ----------------
  51. */
  52. #endif /* PG_INHERITS_H */