Re: Statement timeout

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: Statement timeout
Дата
Msg-id 56AB98A6.703@commandprompt.com
обсуждение исходный текст
Ответ на Statement timeout  (Edson Richter <edsonrichter@hotmail.com>)
Список pgsql-general
On 01/29/2016 07:00 AM, Edson Richter wrote:
> I've set statement timeout in postgresql.conf to 300s.
> Now, I have a schema update procedure at application startup I would
> like to run without timeout, or with significant larger timeout (let's
> say, 10000s).
>
> It is possible to change statement timeout at runtime before issuing the
> command (for one connection only) without changing postgresql.conf?

Yes, use SET

SET statement_timeout TO '$duration';

JD



--
Command Prompt, Inc.                  http://the.postgres.company/
                      +1-503-667-4564
PostgreSQL Centered full stack support, consulting and development.


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: import plpy
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: BSD initdb without ICU support and switch later