BUG #17303: statement_timeout does not work always - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #17303: statement_timeout does not work always
Date
Msg-id 17303-b5932dfa7e8355be@postgresql.org
Whole thread Raw
Responses Re: BUG #17303: statement_timeout does not work always
Re: BUG #17303: statement_timeout does not work always
List 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 by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #17302: gist index prevents insertion of some data
Next
From: Juan José Santamaría Flecha
Date:
Subject: Re: BUG #17288: PSQL bug with COPY command (Windows)