mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Add GetForeignColumnOptions() to foreign.c, and add some documentation.
GetForeignColumnOptions provides some abstraction for accessing column-specific FDW options, on a par with the access functions that were already provided here for other FDW-related information. Adjust file_fdw.c to use GetForeignColumnOptions instead of equivalent hand-rolled code. In addition, add some SGML documentation for the functions exported by foreign.c that are meant for use by FDW authors. (This is the fdw_helper portion of the proposed pgsql_fdw patch.) Hanada Shigeru, reviewed by KaiGai Kohei
This commit is contained in:
@@ -76,6 +76,8 @@ extern ForeignDataWrapper *GetForeignDataWrapperByName(const char *name,
|
||||
bool missing_ok);
|
||||
extern ForeignTable *GetForeignTable(Oid relid);
|
||||
|
||||
extern List *GetForeignColumnOptions(Oid relid, AttrNumber attnum);
|
||||
|
||||
extern Oid get_foreign_data_wrapper_oid(const char *fdwname, bool missing_ok);
|
||||
extern Oid get_foreign_server_oid(const char *servername, bool missing_ok);
|
||||
|
||||
|
Reference in New Issue
Block a user