Function `set_config` doesn't work in with query?

Поиск
Список
Период
Сортировка
От Zexuan Luo
Тема Function `set_config` doesn't work in with query?
Дата
Msg-id CAADJU12T-Zxuah=3+821YjyL5M9_r-Cmvyjp2VWSjGVrWisjEQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Function `set_config` doesn't work in with query?  (Rene Romero Benavides <rene.romero.b@gmail.com>)
Re: Function `set_config` doesn't work in with query?  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-general
For instance:
```
with t as (
    select set_config('blah', '1', false)
)
    select current_setting('blah');
select current_setting('blah');
```

Execute queries above gets these error messages:
psql:test-query-dump.sql:4: ERROR:  unrecognized configuration parameter "blah"
psql:test-query-dump.sql:5: ERROR:  unrecognized configuration parameter "blah"

Thank you for any responses.


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

Предыдущее
От: Jack LIU
Дата:
Сообщение: SPI Interface to Call Procedure with Transaction Control Statements
Следующее
От: Rene Romero Benavides
Дата:
Сообщение: Re: Function `set_config` doesn't work in with query?