pg_foreign_table.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*-------------------------------------------------------------------------
  2. *
  3. * pg_foreign_table.h
  4. * definition of the "foreign table" system catalog (pg_foreign_table)
  5. *
  6. * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
  7. * Portions Copyright (c) 1994, Regents of the University of California
  8. *
  9. * src/include/catalog/pg_foreign_table.h
  10. *
  11. * NOTES
  12. * The Catalog.pm module reads this file and derives schema
  13. * information.
  14. *
  15. *-------------------------------------------------------------------------
  16. */
  17. #ifndef PG_FOREIGN_TABLE_H
  18. #define PG_FOREIGN_TABLE_H
  19. #include "catalog/genbki.h"
  20. #include "catalog/pg_foreign_table_d.h"
  21. /* ----------------
  22. * pg_foreign_table definition. cpp turns this into
  23. * typedef struct FormData_pg_foreign_table
  24. * ----------------
  25. */
  26. CATALOG(pg_foreign_table,3118,ForeignTableRelationId)
  27. {
  28. Oid ftrelid BKI_LOOKUP(pg_class); /* OID of foreign table */
  29. Oid ftserver BKI_LOOKUP(pg_foreign_server); /* OID of foreign server */
  30. #ifdef CATALOG_VARLEN /* variable-length fields start here */
  31. text ftoptions[1]; /* FDW-specific options */
  32. #endif
  33. } FormData_pg_foreign_table;
  34. /* ----------------
  35. * Form_pg_foreign_table corresponds to a pointer to a tuple with
  36. * the format of pg_foreign_table relation.
  37. * ----------------
  38. */
  39. typedef FormData_pg_foreign_table *Form_pg_foreign_table;
  40. DECLARE_TOAST(pg_foreign_table, 4153, 4154);
  41. DECLARE_UNIQUE_INDEX_PKEY(pg_foreign_table_relid_index, 3119, ForeignTableRelidIndexId, on pg_foreign_table using btree(ftrelid oid_ops));
  42. #endif /* PG_FOREIGN_TABLE_H */