BUG #17303: statement_timeout does not work always

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #17303: statement_timeout does not work always
Дата
Msg-id 17303-b5932dfa7e8355be@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #17303: statement_timeout does not work always  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: BUG #17303: statement_timeout does not work always  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17303
Logged by:          RekGRpth
Email address:      rekgrpth@gmail.com
PostgreSQL version: 10.19
Operating system:   ubuntu
Description:

in postgres 10.19
psql -c "SET statement_timeout = 1000;select pg_sleep(2);"
 pg_sleep 
----------
 
(1 row)

but
psql
psql (14.1 (Ubuntu 14.1-1.pgdg21.10+1), server 10.19 (Ubuntu
10.19-1.pgdg21.10+1))
Type "help" for help.

postgres=# SET statement_timeout = 1000;select pg_sleep(2);
SET
ERROR:  canceling statement due to statement timeout

and in postgres 14.1
psql -c "SET statement_timeout = 1000;select pg_sleep(2);"
ERROR:  canceling statement due to statement timeout

Why statement_timeout does not work always in postgres 10.19?


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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17302: gist index prevents insertion of some data
Следующее
От: Juan José Santamaría Flecha
Дата:
Сообщение: Re: BUG #17288: PSQL bug with COPY command (Windows)