diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-02-23 12:20:48 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-02-23 12:20:48 -0500 |
commit | 09a7cd409e762f0430a5d474f4d8d7c962369a8e (patch) | |
tree | 439ab7e39b32f9954076ffc143fd5bbe1c0cd22d /contrib/postgres_fdw/option.c | |
parent | 8e8d0f7e80d80c61b09346a84059457aeeeae548 (diff) | |
download | postgresql-09a7cd409e762f0430a5d474f4d8d7c962369a8e.tar.gz postgresql-09a7cd409e762f0430a5d474f4d8d7c962369a8e.zip |
Rename postgres_fdw's use_remote_explain option to use_remote_estimate.
The new name was originally my typo, but per discussion it seems like a
better name anyway. So make the code match the docs, not vice versa.
Diffstat (limited to 'contrib/postgres_fdw/option.c')
-rw-r--r-- | contrib/postgres_fdw/option.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/postgres_fdw/option.c b/contrib/postgres_fdw/option.c index 3a3ae226276..123cb4f0104 100644 --- a/contrib/postgres_fdw/option.c +++ b/contrib/postgres_fdw/option.c @@ -106,9 +106,9 @@ postgres_fdw_validator(PG_FUNCTION_ARGS) /* * Validate option value, when we can do so without any context. */ - if (strcmp(def->defname, "use_remote_explain") == 0) + if (strcmp(def->defname, "use_remote_estimate") == 0) { - /* use_remote_explain accepts only boolean values */ + /* use_remote_estimate accepts only boolean values */ (void) defGetBoolean(def); } else if (strcmp(def->defname, "fdw_startup_cost") == 0 || @@ -145,9 +145,9 @@ InitPgFdwOptions(void) {"schema_name", ForeignTableRelationId, false}, {"table_name", ForeignTableRelationId, false}, {"column_name", AttributeRelationId, false}, - /* use_remote_explain is available on both server and table */ - {"use_remote_explain", ForeignServerRelationId, false}, - {"use_remote_explain", ForeignTableRelationId, false}, + /* use_remote_estimate is available on both server and table */ + {"use_remote_estimate", ForeignServerRelationId, false}, + {"use_remote_estimate", ForeignTableRelationId, false}, /* cost factors */ {"fdw_startup_cost", ForeignServerRelationId, false}, {"fdw_tuple_cost", ForeignServerRelationId, false}, |