Set timeout just on a query?

From: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Set timeout just on a query?
Date: 2022-05-10 00:59:05
Message-ID: CA+i5Jwbc2B=CT1JxVc7Tke5JFRpBfhyzLA__tdr6t1GckVCwQg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christophe Pettus 2022-05-10 01:00:08 Re: Set timeout just on a query?
Previous Message Shaozhong SHI 2022-05-10 00:58:26 Set timeout just on a query?

Browse pgsql-sql by date

  From Date Subject
Next Message Christophe Pettus 2022-05-10 01:00:08 Re: Set timeout just on a query?
Previous Message Shaozhong SHI 2022-05-10 00:58:26 Set timeout just on a query?