Set timeout just on a query?
Set timeout just on a query?
От:
Shaozhong SHI <shishaozhong@gmail.com>
Дата:
Can timeout be set just on a query?
Can we do the following?
Begin
do a query
set timeout
Exception
report a record
End;
Regards,
David
Re: Set timeout just on a query?
От:
Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Дата:
On Tue, May 10, 2022 at 6:29 AM Shaozhong SHI wrote: > > > Can timeout be set just on a query? > > Can we do the following? > > Begin > > do a query > set timeout > Exception > report a record > > End; Won't the statement_timeout [1] help here? [1] https://www.postgresql.org/docs/devel/runtime-config-client.html Regards, Bharath Rupireddy.