]> granicus.if.org Git - postgresql/blob - src/include/catalog/pg_foreign_data_wrapper.h
aa245961f9e5e93d78585888b703f96bd02740ec
[postgresql] / src / include / catalog / pg_foreign_data_wrapper.h
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-2008, PostgreSQL Global Development Group
9  * Portions Copyright (c) 1994, Regents of the University of California
10  *
11  * $PostgreSQL: pgsql/src/include/catalog/pg_foreign_data_wrapper.h,v 1.1 2008/12/19 16:25:18 petere Exp $
12  *
13  * NOTES
14  *        the genbki.sh 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
36         /* VARIABLE LENGTH FIELDS start here. */
37
38         text            fdwlibrary;             /* FDW shared library location */
39         aclitem         fdwacl[1];              /* access permissions */
40         text            fdwoptions[1];  /* FDW options */
41 } FormData_pg_foreign_data_wrapper;
42
43 /* ----------------
44  *              Form_pg_fdw corresponds to a pointer to a tuple with
45  *              the format of pg_fdw relation.
46  * ----------------
47  */
48 typedef FormData_pg_foreign_data_wrapper *Form_pg_foreign_data_wrapper;
49
50 /* ----------------
51  *              compiler constants for pg_fdw
52  * ----------------
53  */
54
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_fdwlibrary         3
59 #define Anum_pg_foreign_data_wrapper_fdwacl                     4
60 #define Anum_pg_foreign_data_wrapper_fdwoptions         5
61
62 #endif   /* PG_FOREIGN_DATA_WRAPPER_H */