PostgreSQL Source Code  git master
pg_foreign_server.h File Reference
#include "catalog/genbki.h"
#include "catalog/pg_foreign_server_d.h"
Include dependency graph for pg_foreign_server.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef FormData_pg_foreign_serverForm_pg_foreign_server
 

Functions

 CATALOG (pg_foreign_server, 1417, ForeignServerRelationId)
 
 DECLARE_TOAST (pg_foreign_server, 4151, 4152)
 
 DECLARE_UNIQUE_INDEX_PKEY (pg_foreign_server_oid_index, 113, ForeignServerOidIndexId, pg_foreign_server, btree(oid oid_ops))
 
 DECLARE_UNIQUE_INDEX (pg_foreign_server_name_index, 549, ForeignServerNameIndexId, pg_foreign_server, btree(srvname name_ops))
 
 MAKE_SYSCACHE (FOREIGNSERVEROID, pg_foreign_server_oid_index, 2)
 
 MAKE_SYSCACHE (FOREIGNSERVERNAME, pg_foreign_server_name_index, 2)
 

Variables

 FormData_pg_foreign_server
 

Typedef Documentation

◆ Form_pg_foreign_server

Function Documentation

◆ CATALOG()

CATALOG ( pg_foreign_server  ,
1417  ,
ForeignServerRelationId   
)

Definition at line 28 of file pg_foreign_server.h.

29 {
30  Oid oid; /* oid */
31  NameData srvname; /* foreign server name */
32  Oid srvowner BKI_LOOKUP(pg_authid); /* server owner */
33  Oid srvfdw BKI_LOOKUP(pg_foreign_data_wrapper); /* 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
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46
FormData_pg_foreign_server
unsigned int Oid
Definition: postgres_ext.h:31
Definition: c.h:720
Definition: c.h:666

References BKI_LOOKUP.

◆ DECLARE_TOAST()

DECLARE_TOAST ( pg_foreign_server  ,
4151  ,
4152   
)

◆ DECLARE_UNIQUE_INDEX()

DECLARE_UNIQUE_INDEX ( pg_foreign_server_name_index  ,
549  ,
ForeignServerNameIndexId  ,
pg_foreign_server  ,
btree(srvname name_ops)   
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_foreign_server_oid_index  ,
113  ,
ForeignServerOidIndexId  ,
pg_foreign_server  ,
btree(oid oid_ops)   
)

◆ MAKE_SYSCACHE() [1/2]

MAKE_SYSCACHE ( FOREIGNSERVERNAME  ,
pg_foreign_server_name_index  ,
 
)

◆ MAKE_SYSCACHE() [2/2]

MAKE_SYSCACHE ( FOREIGNSERVEROID  ,
pg_foreign_server_oid_index  ,
 
)

Variable Documentation

◆ FormData_pg_foreign_server

FormData_pg_foreign_server

Definition at line 41 of file pg_foreign_server.h.