mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Add the possibility to specify an explicit validator function for foreign-data
wrappers (similar to procedural languages). This way we don't need to retain the nearly empty libraries, and we are more free in how to implement the wrapper API in the future.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.391 2009/02/11 21:11:16 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.392 2009/02/24 10:06:35 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1468,7 +1468,7 @@ typedef struct CreateFdwStmt
|
||||
{
|
||||
NodeTag type;
|
||||
char *fdwname; /* foreign-data wrapper name */
|
||||
char *library; /* libray name */
|
||||
List *validator; /* optional validator function (qual. name) */
|
||||
List *options; /* generic options to FDW */
|
||||
} CreateFdwStmt;
|
||||
|
||||
@@ -1476,7 +1476,8 @@ typedef struct AlterFdwStmt
|
||||
{
|
||||
NodeTag type;
|
||||
char *fdwname; /* foreign-data wrapper name */
|
||||
char *library; /* libray name */
|
||||
List *validator; /* optional validator function (qual. name) */
|
||||
bool change_validator;
|
||||
List *options; /* generic options to FDW */
|
||||
} AlterFdwStmt;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user