PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_foreign_data_wrapper.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_foreign_data_wrapper.h
4  * definition of the system "foreign-data wrapper" relation (pg_foreign_data_wrapper)
5  * along with the relation's initial contents.
6  *
7  *
8  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
9  * Portions Copyright (c) 1994, Regents of the University of California
10  *
11  * src/include/catalog/pg_foreign_data_wrapper.h
12  *
13  * NOTES
14  * the genbki.pl script reads this file and generates .bki
15  * information from the DATA() statements.
16  *
17  *-------------------------------------------------------------------------
18  */
19 #ifndef PG_FOREIGN_DATA_WRAPPER_H
20 #define PG_FOREIGN_DATA_WRAPPER_H
21 
22 #include "catalog/genbki.h"
23 
24 /* ----------------
25  * pg_foreign_data_wrapper definition. cpp turns this into
26  * typedef struct FormData_pg_foreign_data_wrapper
27  * ----------------
28  */
29 #define ForeignDataWrapperRelationId 2328
30 
31 CATALOG(pg_foreign_data_wrapper,2328)
32 {
33  NameData fdwname; /* foreign-data wrapper name */
34  Oid fdwowner; /* FDW owner */
35  Oid fdwhandler; /* handler function, or 0 if none */
36  Oid fdwvalidator; /* option validation function, or 0 if none */
37 
38 #ifdef CATALOG_VARLEN /* variable-length fields start here */
39  aclitem fdwacl[1]; /* access permissions */
40  text fdwoptions[1]; /* FDW options */
41 #endif
43 
44 /* ----------------
45  * Form_pg_fdw corresponds to a pointer to a tuple with
46  * the format of pg_fdw relation.
47  * ----------------
48  */
50 
51 /* ----------------
52  * compiler constants for pg_fdw
53  * ----------------
54  */
55 
56 #define Natts_pg_foreign_data_wrapper 6
57 #define Anum_pg_foreign_data_wrapper_fdwname 1
58 #define Anum_pg_foreign_data_wrapper_fdwowner 2
59 #define Anum_pg_foreign_data_wrapper_fdwhandler 3
60 #define Anum_pg_foreign_data_wrapper_fdwvalidator 4
61 #define Anum_pg_foreign_data_wrapper_fdwacl 5
62 #define Anum_pg_foreign_data_wrapper_fdwoptions 6
63 
64 #endif /* PG_FOREIGN_DATA_WRAPPER_H */
CATALOG(pg_foreign_data_wrapper, 2328)
unsigned int Oid
Definition: postgres_ext.h:31
FormData_pg_foreign_data_wrapper
Definition: c.h:487
FormData_pg_foreign_data_wrapper * Form_pg_foreign_data_wrapper
Definition: c.h:433