Re: 'bar' shouldn't be a string in example

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: 'bar' shouldn't be a string in example
Дата
Msg-id 8DF4199B-549C-433E-A35F-D1995933F11F@yesql.se
обсуждение исходный текст
Ответ на 'bar' shouldn't be a string in example  (PG Doc comments form <noreply@postgresql.org>)
Список pgsql-docs
> On 18 Dec 2023, at 19:06, PG Doc comments form <noreply@postgresql.org> wrote:

> ALTER FOREIGN DATA WRAPPER dbi OPTIONS (ADD foo '1', DROP 'bar');
>
> I think "bar" is akin to "foo" and therefore should be similarly an option?
> (i.e. not a string value)?

Nice catch, "DROP 'bar'" is considered to be unqualified and thus ADD is
assumed, generating the below options:

postgres=# alter foreign data wrapper dummy options (add foo '1', drop 'bar');
ALTER FOREIGN DATA WRAPPER
postgres=# select fdwoptions from pg_foreign_data_wrapper where fdwname='dummy';
    fdwoptions
------------------
 {foo=1,drop=bar}
(1 row)

This has been incorrect since forever so I will backpatch this into all
supported versions.

--
Daniel Gustafsson




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

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: 'bar' shouldn't be a string in example
Следующее
От: PG Doc comments form
Дата:
Сообщение: Inconsistency in: 2.3. Creating a New Table