pgsql: doc: Fix syntax in ALTER FOREIGN DATA WRAPPER example

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема pgsql: doc: Fix syntax in ALTER FOREIGN DATA WRAPPER example
Дата
Msg-id E1rFaM4-00Avnf-CV@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e52e271b23005f27e997215617993c87629247f2

Modified Files
--------------
doc/src/sgml/ref/alter_foreign_data_wrapper.sgml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Simplify newNode() by removing special cases
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: pgsql: doc: Fix syntax in ALTER FOREIGN DATA WRAPPER example