PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_foreign_table.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_foreign_table.h
4  * definition of the system "foreign table" relation (pg_foreign_table)
5  *
6  * Portions Copyright (c) 1996-2017, 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 genbki.pl script reads this file and generates .bki
13  * information from the DATA() statements.
14  *
15  *-------------------------------------------------------------------------
16  */
17 #ifndef PG_FOREIGN_TABLE_H
18 #define PG_FOREIGN_TABLE_H
19 
20 #include "catalog/genbki.h"
21 
22 /* ----------------
23  * pg_foreign_table definition. cpp turns this into
24  * typedef struct FormData_pg_foreign_table
25  * ----------------
26  */
27 #define ForeignTableRelationId 3118
28 
29 CATALOG(pg_foreign_table,3118) BKI_WITHOUT_OIDS
30 {
31  Oid ftrelid; /* OID of foreign table */
32  Oid ftserver; /* OID of foreign server */
33 
34 #ifdef CATALOG_VARLEN /* variable-length fields start here */
35  text ftoptions[1]; /* FDW-specific options */
36 #endif
38 
39 /* ----------------
40  * Form_pg_foreign_table corresponds to a pointer to a tuple with
41  * the format of pg_foreign_table relation.
42  * ----------------
43  */
45 
46 /* ----------------
47  * compiler constants for pg_foreign_table
48  * ----------------
49  */
50 
51 #define Natts_pg_foreign_table 3
52 #define Anum_pg_foreign_table_ftrelid 1
53 #define Anum_pg_foreign_table_ftserver 2
54 #define Anum_pg_foreign_table_ftoptions 3
55 
56 #endif /* PG_FOREIGN_TABLE_H */
unsigned int Oid
Definition: postgres_ext.h:31
#define BKI_WITHOUT_OIDS
Definition: genbki.h:28
FormData_pg_foreign_table * Form_pg_foreign_table
CATALOG(pg_foreign_table, 3118) BKI_WITHOUT_OIDS
Definition: c.h:439
FormData_pg_foreign_table