diff options
Diffstat (limited to 'contrib/postgres_fdw/option.c')
-rw-r--r-- | contrib/postgres_fdw/option.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/postgres_fdw/option.c b/contrib/postgres_fdw/option.c index 123cb4f0104..e1d4c477339 100644 --- a/contrib/postgres_fdw/option.c +++ b/contrib/postgres_fdw/option.c @@ -106,9 +106,10 @@ postgres_fdw_validator(PG_FUNCTION_ARGS) /* * Validate option value, when we can do so without any context. */ - if (strcmp(def->defname, "use_remote_estimate") == 0) + if (strcmp(def->defname, "use_remote_estimate") == 0 || + strcmp(def->defname, "updatable") == 0) { - /* use_remote_estimate accepts only boolean values */ + /* these accept only boolean values */ (void) defGetBoolean(def); } else if (strcmp(def->defname, "fdw_startup_cost") == 0 || @@ -151,6 +152,9 @@ InitPgFdwOptions(void) /* cost factors */ {"fdw_startup_cost", ForeignServerRelationId, false}, {"fdw_tuple_cost", ForeignServerRelationId, false}, + /* updatable is available on both server and table */ + {"updatable", ForeignServerRelationId, false}, + {"updatable", ForeignTableRelationId, false}, {NULL, InvalidOid, false} }; |