Introduce new extended routines for FDW and foreign server lookups
authorMichael Paquier <michael@paquier.xyz>
Thu, 13 Dec 2018 23:59:35 +0000 (08:59 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 13 Dec 2018 23:59:35 +0000 (08:59 +0900)
commit8fb569e978af3995f0dd6b0033758ec571aab0c1
treecb1b57fc5c40825958912322da79c18836f31a66
parent09568ec3d31bbd4854b857e8d23c197ad5b25c77
Introduce new extended routines for FDW and foreign server lookups

The cache lookup routines for foreign-data wrappers and foreign servers
are extended with an extra argument to handle a set of flags.  The only
value which can be used now is to indicate if a missing object should
result in an error or not, and are designed to be extensible on need.
Those new routines are added into the existing set of user-visible
FDW APIs and documented in consequence.  They will be used for future
patches to improve the SQL interface for object addresses.

Author: Michael Paquier
Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/CAB7nPqSZxrSmdHK-rny7z8mi=EAFXJ5J-0RbzDw6aus=wB5azQ@mail.gmail.com
doc/src/sgml/fdwhandler.sgml
src/backend/foreign/foreign.c
src/include/foreign/foreign.h