BUG #14964: statement_timeout cann't set in plpgsql

From: digoal(at)126(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Cc: digoal(at)126(dot)com
Subject: BUG #14964: statement_timeout cann't set in plpgsql
Date: 2017-12-11 14:29:26
Message-ID: 20171211142926.20152.70880@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14964
Logged by: Zhou Digoal
Email address: digoal(at)126(dot)com
PostgreSQL version: 10.1
Operating system: centos 7.4 x64
Description:

```
create or replace function f1(int) returns setof record as $$
declare
begin
set local statement_timeout='1ms';
return query select count(*) as cnt, id from a where id<$1 group by id;
end;
$$ language plpgsql strict ;
```

but it can execute every time, which when the query run more than 1ms.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2017-12-11 14:36:15 Re: BUG #14963: Number of wal files are keep on increasing
Previous Message raghavendrajsv 2017-12-11 14:18:58 BUG #14963: Number of wal files are keep on increasing