PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_foreign_server.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_foreign_server.h
4  * definition of the system "foreign server" relation (pg_foreign_server)
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_server.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_SERVER_H
18 #define PG_FOREIGN_SERVER_H
19 
20 #include "catalog/genbki.h"
21 
22 /* ----------------
23  * pg_foreign_server definition. cpp turns this into
24  * typedef struct FormData_pg_foreign_server
25  * ----------------
26  */
27 #define ForeignServerRelationId 1417
28 
29 CATALOG(pg_foreign_server,1417)
30 {
31  NameData srvname; /* foreign server name */
32  Oid srvowner; /* server owner */
33  Oid srvfdw; /* server FDW */
34 
35 #ifdef CATALOG_VARLEN /* variable-length fields start here */
36  text srvtype;
37  text srvversion;
38  aclitem srvacl[1]; /* access permissions */
39  text srvoptions[1]; /* FDW-specific options */
40 #endif
42 
43 /* ----------------
44  * Form_pg_foreign_server corresponds to a pointer to a tuple with
45  * the format of pg_foreign_server relation.
46  * ----------------
47  */
49 
50 /* ----------------
51  * compiler constants for pg_foreign_server
52  * ----------------
53  */
54 
55 #define Natts_pg_foreign_server 7
56 #define Anum_pg_foreign_server_srvname 1
57 #define Anum_pg_foreign_server_srvowner 2
58 #define Anum_pg_foreign_server_srvfdw 3
59 #define Anum_pg_foreign_server_srvtype 4
60 #define Anum_pg_foreign_server_srvversion 5
61 #define Anum_pg_foreign_server_srvacl 6
62 #define Anum_pg_foreign_server_srvoptions 7
63 
64 #endif /* PG_FOREIGN_SERVER_H */
unsigned int Oid
Definition: postgres_ext.h:31
CATALOG(pg_foreign_server, 1417)
Definition: c.h:487
FormData_pg_foreign_server
FormData_pg_foreign_server * Form_pg_foreign_server
Definition: c.h:433