Statement_timeout in procedure block

Поиск
Список
Период
Сортировка
От Teja Jakkidi
Тема Statement_timeout in procedure block
Дата
Msg-id E0175C30-9A8F-4648-A2D5-36908FF6F695@gmail.com
обсуждение исходный текст
Ответы Re: Statement_timeout in procedure block
Re: Statement_timeout in procedure block
Re: Statement_timeout in procedure block
Список pgsql-admin
Hello PgAdmins,

We have a Postgres instance where we had set statement_timeout to 1hour at instance level.
However, today we noticed that one of our cron jobs which calls a stored procedure failed with timeout error as it was
runningfor more than an hour. 
I tried setting “Set local statement_timeout=‘2 h’” within the stored procedure expecting that the statement timeout
willbe 2hours for the SP execution. However it did not work as expected.  
Can anyone please suggest what can be done here.

Thanks in advance,
J. Teja.


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

Предыдущее
От: "Vitale, Anthony, Sony Music"
Дата:
Сообщение: RE: Scripting a ALTER PROCEDURE or FUNCTION to Change OWNER
Следующее
От: Wells Oliver
Дата:
Сообщение: Materialized views & dead tuples