Re: Statement_timeout in procedure block

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Statement_timeout in procedure block
Дата
Msg-id f53ee50dee32d8040be119234537dbb66562b981.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Statement_timeout in procedure block  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
On Wed, 2024-06-19 at 10:58 -0400, Tom Lane wrote:
> Laurenz Albe <laurenz.albe@cybertec.at> writes:
> > What works is setting the parameter on the procedure:
>
> > test=> CREATE OR REPLACE PROCEDURE sit() LANGUAGE plpgsql SET statement_timeout = 2000 AS 'BEGIN PERFORM
pg_sleep(5);END;'; 
> > CREATE PROCEDURE
>
> That doesn't work either, for me, and I would not expect any of these
> variants to do so.

Ah, you are right.

It was the SET statement in the previous incarnation of the procedure that
had changed the parameter for my database session.

Yours,
Laurenz Albe



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Statement_timeout in procedure block
Следующее
От: Kenneth Barber
Дата:
Сообщение: Excluding event triggers from a pg_dump