PostgreSQL Source Code git master
Loading...
Searching...
No Matches
pg_foreign_table.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * pg_foreign_table.h
4 * definition of the "foreign table" system catalog (pg_foreign_table)
5 *
6 * Portions Copyright (c) 1996-2026, 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
20#include "catalog/genbki.h"
21#include "catalog/pg_foreign_table_d.h" /* IWYU pragma: export */
22
23/* ----------------
24 * pg_foreign_table definition. cpp turns this into
25 * typedef struct FormData_pg_foreign_table
26 * ----------------
27 */
29{
30 Oid ftrelid BKI_LOOKUP(pg_class); /* OID of foreign table */
31 Oid ftserver BKI_LOOKUP(pg_foreign_server); /* OID of foreign server */
32
33#ifdef CATALOG_VARLEN /* variable-length fields start here */
34 text ftoptions[1]; /* FDW-specific options */
35#endif
37
38/* ----------------
39 * Form_pg_foreign_table corresponds to a pointer to a tuple with
40 * the format of pg_foreign_table relation.
41 * ----------------
42 */
44
46
48
50
51#endif /* PG_FOREIGN_TABLE_H */
#define DECLARE_UNIQUE_INDEX_PKEY(name, oid, oidmacro, tblname, decl)
Definition genbki.h:86
#define BKI_LOOKUP(catalog)
Definition genbki.h:46
#define DECLARE_TOAST(name, toastoid, indexoid)
Definition genbki.h:63
#define CATALOG(name, oid, oidmacro)
Definition genbki.h:23
#define MAKE_SYSCACHE(name, idxname, nbuckets)
Definition genbki.h:127
FormData_pg_foreign_table * Form_pg_foreign_table
FormData_pg_foreign_table
unsigned int Oid
static int fb(int x)
Definition c.h:706