|
PostgreSQL Source Code git master
|
#include "nodes/parsenodes.h"

Go to the source code of this file.
Data Structures | |
| struct | ForeignDataWrapper |
| struct | ForeignServer |
| struct | UserMapping |
| struct | ForeignTable |
Macros | |
| #define | MappingUserName(userid) (OidIsValid(userid) ? GetUserNameFromId(userid, false) : "public") |
| #define | FSV_MISSING_OK 0x01 |
| #define | FDW_MISSING_OK 0x01 |
Typedefs | |
| typedef struct ForeignDataWrapper | ForeignDataWrapper |
| typedef struct ForeignServer | ForeignServer |
| typedef struct UserMapping | UserMapping |
| typedef struct ForeignTable | ForeignTable |
Functions | |
| ForeignServer * | GetForeignServer (Oid serverid) |
| ForeignServer * | GetForeignServerExtended (Oid serverid, bits16 flags) |
| ForeignServer * | GetForeignServerByName (const char *srvname, bool missing_ok) |
| UserMapping * | GetUserMapping (Oid userid, Oid serverid) |
| ForeignDataWrapper * | GetForeignDataWrapper (Oid fdwid) |
| ForeignDataWrapper * | GetForeignDataWrapperExtended (Oid fdwid, bits16 flags) |
| ForeignDataWrapper * | GetForeignDataWrapperByName (const char *fdwname, bool missing_ok) |
| ForeignTable * | GetForeignTable (Oid relid) |
| List * | GetForeignColumnOptions (Oid relid, AttrNumber attnum) |
| Oid | get_foreign_data_wrapper_oid (const char *fdwname, bool missing_ok) |
| Oid | get_foreign_server_oid (const char *servername, bool missing_ok) |
| #define MappingUserName | ( | userid | ) | (OidIsValid(userid) ? GetUserNameFromId(userid, false) : "public") |
Definition at line 682 of file foreign.c.
References CStringGetDatum(), ereport, errcode(), errmsg(), ERROR, fb(), GetSysCacheOid1, and OidIsValid.
Referenced by convert_foreign_data_wrapper_name(), get_object_address_unqualified(), and GetForeignDataWrapperByName().
Definition at line 705 of file foreign.c.
References CStringGetDatum(), ereport, errcode(), errmsg(), ERROR, fb(), GetSysCacheOid1, and OidIsValid.
Referenced by convert_server_name(), CreateForeignServer(), get_object_address_unqualified(), and GetForeignServerByName().
|
extern |
Definition at line 293 of file foreign.c.
References attnum, elog, ERROR, fb(), HeapTupleIsValid, Int16GetDatum(), NIL, ObjectIdGetDatum(), ReleaseSysCache(), SearchSysCache2(), SysCacheGetAttr(), and untransformRelOptions().
Referenced by deparseAnalyzeSql(), deparseColumnRef(), and get_file_fdw_attribute_options().
|
extern |
Definition at line 38 of file foreign.c.
References GetForeignDataWrapperExtended().
Referenced by AlterForeignServer(), AlterForeignServerOwner_internal(), AlterUserMapping(), ATExecAlterColumnGenericOptions(), ATExecGenericOptions(), CreateForeignTable(), CreateUserMapping(), fileGetOptions(), get_connect_string(), GetForeignDataWrapperByName(), and ImportForeignSchema().
|
extern |
Definition at line 97 of file foreign.c.
References fb(), get_foreign_data_wrapper_oid(), GetForeignDataWrapper(), and OidIsValid.
Referenced by CreateForeignDataWrapper(), and CreateForeignServer().
|
extern |
Definition at line 50 of file foreign.c.
References elog, ERROR, fb(), FDW_MISSING_OK, GETSTRUCT(), HeapTupleIsValid, NameStr, NIL, ObjectIdGetDatum(), palloc_object, pstrdup(), ReleaseSysCache(), SearchSysCache1(), SysCacheGetAttr(), and untransformRelOptions().
Referenced by GetForeignDataWrapper(), getObjectDescription(), and getObjectIdentityParts().
|
extern |
Definition at line 112 of file foreign.c.
References GetForeignServerExtended().
Referenced by ATExecAlterColumnGenericOptions(), ATExecGenericOptions(), fileGetOptions(), get_batch_size_option(), GetForeignServerByName(), getObjectDescription(), getObjectIdentityParts(), GetUserMapping(), make_new_connection(), pgfdw_reject_incomplete_xact_state_change(), postgresAcquireSampleRowsFunc(), postgresExecForeignTruncate(), postgresGetForeignRelSize(), postgresImportForeignSchema(), and postgresIsForeignRelUpdatable().
|
extern |
Definition at line 183 of file foreign.c.
References fb(), get_foreign_server_oid(), GetForeignServer(), and OidIsValid.
Referenced by AlterUserMapping(), CreateForeignTable(), CreateUserMapping(), get_connect_string(), get_object_address_usermapping(), ImportForeignSchema(), postgres_fdw_disconnect(), and RemoveUserMapping().
|
extern |
Definition at line 124 of file foreign.c.
References elog, ERROR, fb(), ForeignServer::fdwid, FSV_MISSING_OK, GETSTRUCT(), HeapTupleIsValid, NameStr, NIL, ObjectIdGetDatum(), ForeignServer::options, ForeignServer::owner, palloc_object, pstrdup(), ReleaseSysCache(), SearchSysCache1(), ForeignServer::serverid, ForeignServer::servername, ForeignServer::servertype, ForeignServer::serverversion, SysCacheGetAttr(), TextDatumGetCString, and untransformRelOptions().
Referenced by disconnect_cached_connections(), GetForeignServer(), getObjectDescription(), getObjectIdentityParts(), and postgres_fdw_get_connections_internal().
|
extern |
Definition at line 255 of file foreign.c.
References elog, ERROR, fb(), GETSTRUCT(), HeapTupleIsValid, NIL, ObjectIdGetDatum(), palloc_object, ReleaseSysCache(), SearchSysCache1(), SysCacheGetAttr(), and untransformRelOptions().
Referenced by check_selective_binary_conversion(), create_foreign_modify(), deparseRelation(), fileGetOptions(), get_batch_size_option(), postgresAcquireSampleRowsFunc(), postgresAnalyzeForeignTable(), postgresBeginDirectModify(), postgresBeginForeignScan(), postgresExecForeignTruncate(), postgresGetAnalyzeInfoForForeignTable(), postgresGetForeignRelSize(), and postgresIsForeignRelUpdatable().
|
extern |
Definition at line 201 of file foreign.c.
References ereport, errcode(), errmsg(), ERROR, fb(), GetForeignServer(), GETSTRUCT(), HeapTupleIsValid, InvalidOid, MappingUserName, NIL, ObjectIdGetDatum(), palloc_object, ReleaseSysCache(), SearchSysCache2(), ForeignServer::servername, SysCacheGetAttr(), and untransformRelOptions().
Referenced by create_foreign_modify(), get_connect_string(), postgresAcquireSampleRowsFunc(), postgresAnalyzeForeignTable(), postgresBeginDirectModify(), postgresBeginForeignScan(), postgresExecForeignTruncate(), postgresGetAnalyzeInfoForForeignTable(), postgresGetForeignRelSize(), and postgresImportForeignSchema().