doc: Fix syntax in ALTER FOREIGN DATA WRAPPER example
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Tue, 19 Dec 2023 13:13:50 +0000 (14:13 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Tue, 19 Dec 2023 13:13:50 +0000 (14:13 +0100)
commit3cf7dfa7f3f6432788bf1df026fe79b63ee98401
treee1d3698ab558909d99311682dd937085d0d45678
parentf610d4f119b5761475dff65266ec29c8e9cae509
doc: Fix syntax in ALTER FOREIGN DATA WRAPPER example

The example for dropping an option was incorrectly quoting the
option key thus making it a value turning the command into an
unqualified ADD operation. The result of dropping became adding
a new key/value pair instead:

 d=# alter foreign data wrapper f options (drop 'b');
 ALTER FOREIGN DATA WRAPPER
 d=# select fdwoptions from pg_foreign_data_wrapper where fdwname='f';
  fdwoptions
 ------------
  {drop=b}
 (1 row)

This has been incorrect for a long time so backpatch to all
supported branches.

Author: Tim <tim.needham2@gmail.com>
Discussion: https://postgr.es/m/170292280173.1876505.5204623074024041738@wrigleys.postgresql.org
doc/src/sgml/ref/alter_foreign_data_wrapper.sgml