Set timeout just on a query?

From: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
To: pgsql-sql <pgsql-sql(at)lists(dot)postgresql(dot)org>
Subject: Set timeout just on a query?
Date: 2022-05-10 00:58:26
Message-ID: CA+i5JwYsXzYwBT87y2jtch=Lg1s=d+XgJ0sJS0TV8VQT8g_Xtg@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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shaozhong SHI 2022-05-10 00:59:05 Set timeout just on a query?
Previous Message Adrian Klaver 2022-05-09 16:14:54 Re: Need to install Postgres Version 14 in Linux server with Client and migration steps.

Browse pgsql-sql by date

  From Date Subject
Next Message Shaozhong SHI 2022-05-10 00:59:05 Set timeout just on a query?
Previous Message Simon Riggs 2022-05-08 19:15:54 Re: Recursive query - ERROR: invalid memory alloc request size 1073741824