Re: Set timeout just on a query?

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: Set timeout just on a query?
Дата
Msg-id 25AF5D7A-0479-43D2-8427-100489E76F29@thebuild.com
обсуждение исходный текст
Ответ на Set timeout just on a query?  (Shaozhong SHI <shishaozhong@gmail.com>)
Список pgsql-sql

> On May 9, 2022, at 17:58, Shaozhong SHI <shishaozhong@gmail.com> wrote:
> Begin
> 
> do a query
> set timeout 
> Exception
> report a record
> 
> End;

Yes.  The syntax you are looking for is:

    SET LOCAL statement_timeout = '<value>';

Best,
-- Christophe



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