1 /*-------------------------------------------------------------------------
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.
8 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
14 * the genbki.sh script reads this file and generates .bki
15 * information from the DATA() statements.
17 *-------------------------------------------------------------------------
19 #ifndef PG_FOREIGN_DATA_WRAPPER_H
20 #define PG_FOREIGN_DATA_WRAPPER_H
22 #include "catalog/genbki.h"
25 * pg_foreign_data_wrapper definition. cpp turns this into
26 * typedef struct FormData_pg_foreign_data_wrapper
29 #define ForeignDataWrapperRelationId 2328
31 CATALOG(pg_foreign_data_wrapper
,2328)
33 NameData fdwname
; /* foreign-data wrapper name */
34 Oid fdwowner
; /* FDW owner */
35 Oid fdwvalidator
; /* optional validation function */
37 /* VARIABLE LENGTH FIELDS start here. */
39 aclitem fdwacl
[1]; /* access permissions */
40 text fdwoptions
[1]; /* FDW options */
41 } FormData_pg_foreign_data_wrapper
;
44 * Form_pg_fdw corresponds to a pointer to a tuple with
45 * the format of pg_fdw relation.
48 typedef FormData_pg_foreign_data_wrapper
*Form_pg_foreign_data_wrapper
;
51 * compiler constants for pg_fdw
55 #define Natts_pg_foreign_data_wrapper 5
56 #define Anum_pg_foreign_data_wrapper_fdwname 1
57 #define Anum_pg_foreign_data_wrapper_fdwowner 2
58 #define Anum_pg_foreign_data_wrapper_fdwvalidator 3
59 #define Anum_pg_foreign_data_wrapper_fdwacl 4
60 #define Anum_pg_foreign_data_wrapper_fdwoptions 5
62 #endif /* PG_FOREIGN_DATA_WRAPPER_H */