Header And Logo

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

pg_foreign_table.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * pg_foreign_table.h
00004  *    definition of the system "foreign table" relation (pg_foreign_table)
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_table.h
00010  *
00011  * NOTES
00012  *    the genbki.sh script reads this file and generates .bki
00013  *    information from the DATA() statements.
00014  *
00015  *-------------------------------------------------------------------------
00016  */
00017 #ifndef PG_FOREIGN_TABLE_H
00018 #define PG_FOREIGN_TABLE_H
00019 
00020 #include "catalog/genbki.h"
00021 
00022 /* ----------------
00023  *      pg_foreign_table definition.  cpp turns this into
00024  *      typedef struct FormData_pg_foreign_table
00025  * ----------------
00026  */
00027 #define ForeignTableRelationId 3118
00028 
00029 CATALOG(pg_foreign_table,3118) BKI_WITHOUT_OIDS
00030 {
00031     Oid         ftrelid;        /* OID of foreign table */
00032     Oid         ftserver;       /* OID of foreign server */
00033 
00034 #ifdef CATALOG_VARLEN           /* variable-length fields start here */
00035     text        ftoptions[1];   /* FDW-specific options */
00036 #endif
00037 } FormData_pg_foreign_table;
00038 
00039 /* ----------------
00040  *      Form_pg_foreign_table corresponds to a pointer to a tuple with
00041  *      the format of pg_foreign_table relation.
00042  * ----------------
00043  */
00044 typedef FormData_pg_foreign_table *Form_pg_foreign_table;
00045 
00046 /* ----------------
00047  *      compiler constants for pg_foreign_table
00048  * ----------------
00049  */
00050 
00051 #define Natts_pg_foreign_table                  3
00052 #define Anum_pg_foreign_table_ftrelid           1
00053 #define Anum_pg_foreign_table_ftserver          2
00054 #define Anum_pg_foreign_table_ftoptions         3
00055 
00056 #endif   /* PG_FOREIGN_TABLE_H */