pg_publication_namespace.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_publication_namespace.h
  4. * definition of the system catalog for mappings between schemas and
  5. * publications (pg_publication_namespace)
  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_namespace.h
  11. *
  12. * NOTES
  13. * The Catalog.pm module reads this file and derives schema
  14. * information.
  15. *
  16. *-------------------------------------------------------------------------
  17. */
  18. #ifndef PG_PUBLICATION_NAMESPACE_H
  19. #define PG_PUBLICATION_NAMESPACE_H
  20. #include "catalog/genbki.h"
  21. #include "catalog/pg_publication_namespace_d.h"
  22. /* ----------------
  23. * pg_publication_namespace definition. cpp turns this into
  24. * typedef struct FormData_pg_publication_namespace
  25. * ----------------
  26. */
  27. CATALOG(pg_publication_namespace,6237,PublicationNamespaceRelationId)
  28. {
  29. Oid oid; /* oid */
  30. Oid pnpubid BKI_LOOKUP(pg_publication); /* Oid of the publication */
  31. Oid pnnspid BKI_LOOKUP(pg_namespace); /* Oid of the schema */
  32. } FormData_pg_publication_namespace;
  33. /* ----------------
  34. * Form_pg_publication_namespace corresponds to a pointer to a tuple with
  35. * the format of pg_publication_namespace relation.
  36. * ----------------
  37. */
  38. typedef FormData_pg_publication_namespace *Form_pg_publication_namespace;
  39. DECLARE_UNIQUE_INDEX_PKEY(pg_publication_namespace_oid_index, 6238, PublicationNamespaceObjectIndexId, on pg_publication_namespace using btree(oid oid_ops));
  40. DECLARE_UNIQUE_INDEX(pg_publication_namespace_pnnspid_pnpubid_index, 6239, PublicationNamespacePnnspidPnpubidIndexId, on pg_publication_namespace using btree(pnnspid oid_ops, pnpubid oid_ops));
  41. #endif /* PG_PUBLICATION_NAMESPACE_H */