]> granicus.if.org Git - postgresql/commit
Add GetForeignColumnOptions() to foreign.c, and add some documentation.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Mar 2012 23:20:58 +0000 (18:20 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 Mar 2012 23:20:58 +0000 (18:20 -0500)
commit9088d1b96504717fd589ff7eeacc96b6d1c08ead
tree3e2614521673ddfb0a1f7c6a9696053157a4b915
parentcf7026b64b3e56889f8a81194a57221500e23a0f
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
contrib/file_fdw/file_fdw.c
doc/src/sgml/fdwhandler.sgml
src/backend/foreign/foreign.c
src/include/foreign/foreign.h