Header And Logo

PostgreSQL
| The world's most advanced open source database.

pg_foreign_server.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * pg_foreign_server.h
00004  *    definition of the system "foreign server" relation (pg_foreign_server)
00005  *
00006  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
00007  * Portions Copyright (c) 1994, Regents of the University of California
00008  *
00009  * src/include/catalog/pg_foreign_server.h
00010  *
00011  * NOTES
00012  *    the genbki.pl script reads this file and generates .bki
00013  *    information from the DATA() statements.
00014  *
00015  *-------------------------------------------------------------------------
00016  */
00017 #ifndef PG_FOREIGN_SERVER_H
00018 #define PG_FOREIGN_SERVER_H
00019 
00020 #include "catalog/genbki.h"
00021 
00022 /* ----------------
00023  *      pg_foreign_server definition.  cpp turns this into
00024  *      typedef struct FormData_pg_foreign_server
00025  * ----------------
00026  */
00027 #define ForeignServerRelationId 1417
00028 
00029 CATALOG(pg_foreign_server,1417)
00030 {
00031     NameData    srvname;        /* foreign server name */
00032     Oid         srvowner;       /* server owner */
00033     Oid         srvfdw;         /* server FDW */
00034 
00035 #ifdef CATALOG_VARLEN           /* variable-length fields start here */
00036     text        srvtype;
00037     text        srvversion;
00038     aclitem     srvacl[1];      /* access permissions */
00039     text        srvoptions[1];  /* FDW-specific options */
00040 #endif
00041 } FormData_pg_foreign_server;
00042 
00043 /* ----------------
00044  *      Form_pg_foreign_server corresponds to a pointer to a tuple with
00045  *      the format of pg_foreign_server relation.
00046  * ----------------
00047  */
00048 typedef FormData_pg_foreign_server *Form_pg_foreign_server;
00049 
00050 /* ----------------
00051  *      compiler constants for pg_foreign_server
00052  * ----------------
00053  */
00054 
00055 #define Natts_pg_foreign_server                 7
00056 #define Anum_pg_foreign_server_srvname          1
00057 #define Anum_pg_foreign_server_srvowner         2
00058 #define Anum_pg_foreign_server_srvfdw           3
00059 #define Anum_pg_foreign_server_srvtype          4
00060 #define Anum_pg_foreign_server_srvversion       5
00061 #define Anum_pg_foreign_server_srvacl           6
00062 #define Anum_pg_foreign_server_srvoptions       7
00063 
00064 #endif   /* PG_FOREIGN_SERVER_H */