diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/common/reloptions.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/backend/access/common/reloptions.c b/src/backend/access/common/reloptions.c index 97a4e227a3b..e0b81b9eb51 100644 --- a/src/backend/access/common/reloptions.c +++ b/src/backend/access/common/reloptions.c @@ -307,8 +307,6 @@ static void initialize_reloptions(void); static void parse_one_reloption(relopt_value *option, char *text_str, int text_len, bool validate); -static bool is_valid_reloption(char *name); - /* * initialize_reloptions * initialization routine, must be called before parsing @@ -384,25 +382,6 @@ initialize_reloptions(void) } /* - * is_valid_reloption - * check if a reloption exists - * - */ -static bool -is_valid_reloption(char *name) -{ - int i; - - for (i = 0; relOpts[i]; i++) - { - if (pg_strcasecmp(relOpts[i]->name, name) == 0) - return true; - } - - return false; -} - -/* * add_reloption_kind * Create a new relopt_kind value, to be used in custom reloptions by * user-defined AMs. @@ -693,11 +672,6 @@ transformRelOptions(Datum oldOptions, List *defList, char *namspace, if (isReset) { - if (!is_valid_reloption(def->defname)) - ereport(ERROR, - (errcode(ERRCODE_INVALID_PARAMETER_VALUE), - errmsg("unrecognized parameter \"%s\"", def->defname))); - if (def->arg != NULL) ereport(ERROR, (errcode(ERRCODE_SYNTAX_ERROR), |