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-2013, PostgreSQL Global Development Group
9
* Portions Copyright (c) 1994, Regents of the University of California
11
* src/include/catalog/pg_foreign_data_wrapper.h
14
* the genbki.pl 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 fdwhandler; /* handler function, or 0 if none */
36
Oid fdwvalidator; /* option validation function, or 0 if none */
38
#ifdef CATALOG_VARLEN /* variable-length fields start here */
39
aclitem fdwacl[1]; /* access permissions */
40
text fdwoptions[1]; /* FDW options */
42
} FormData_pg_foreign_data_wrapper;
45
* Form_pg_fdw corresponds to a pointer to a tuple with
46
* the format of pg_fdw relation.
49
typedef FormData_pg_foreign_data_wrapper *Form_pg_foreign_data_wrapper;
52
* compiler constants for pg_fdw
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
64
#endif /* PG_FOREIGN_DATA_WRAPPER_H */