pg_publication_rel.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_publication_rel.h
  4. * definition of the system catalog for mappings between relations and
  5. * publications (pg_publication_rel)
  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_publication_rel.h
  11. *
  12. * NOTES
  13. * The Catalog.pm module reads this file and derives schema
  14. * information.
  15. *
  16. *-------------------------------------------------------------------------
  17. */
  18. #ifndef PG_PUBLICATION_REL_H
  19. #define PG_PUBLICATION_REL_H
  20. #include "catalog/genbki.h"
  21. #include "catalog/pg_publication_rel_d.h"
  22. /* ----------------
  23. * pg_publication_rel definition. cpp turns this into
  24. * typedef struct FormData_pg_publication_rel
  25. * ----------------
  26. */
  27. CATALOG(pg_publication_rel,6106,PublicationRelRelationId)
  28. {
  29. Oid oid; /* oid */
  30. Oid prpubid BKI_LOOKUP(pg_publication); /* Oid of the publication */
  31. Oid prrelid BKI_LOOKUP(pg_class); /* Oid of the relation */
  32. #ifdef CATALOG_VARLEN /* variable-length fields start here */
  33. pg_node_tree prqual; /* qualifications */
  34. int2vector prattrs; /* columns to replicate */
  35. #endif
  36. } FormData_pg_publication_rel;
  37. /* ----------------
  38. * Form_pg_publication_rel corresponds to a pointer to a tuple with
  39. * the format of pg_publication_rel relation.
  40. * ----------------
  41. */
  42. typedef FormData_pg_publication_rel *Form_pg_publication_rel;
  43. DECLARE_TOAST(pg_publication_rel, 6228, 6229);
  44. DECLARE_UNIQUE_INDEX_PKEY(pg_publication_rel_oid_index, 6112, PublicationRelObjectIndexId, on pg_publication_rel using btree(oid oid_ops));
  45. DECLARE_UNIQUE_INDEX(pg_publication_rel_prrelid_prpubid_index, 6113, PublicationRelPrrelidPrpubidIndexId, on pg_publication_rel using btree(prrelid oid_ops, prpubid oid_ops));
  46. DECLARE_INDEX(pg_publication_rel_prpubid_index, 6116, PublicationRelPrpubidIndexId, on pg_publication_rel using btree(prpubid oid_ops));
  47. #endif /* PG_PUBLICATION_REL_H */