public inbox for [email protected]
help / color / mirror / Atom feedFrom: Bharath Rupireddy <[email protected]>
To: Shaozhong SHI <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: Set timeout just on a query?
Date: Tue, 10 May 2022 09:26:47 +0530
Message-ID: <CALj2ACXH+=1T3QKtwhc9S2_CDR+ndVUE8fph8Xo1puRp+vf-vg@mail.gmail.com> (raw)
In-Reply-To: <CA+i5Jwbc2B=CT1JxVc7Tke5JFRpBfhyzLA__tdr6t1GckVCwQg@mail.gmail.com>
References: <CA+i5JwYsXzYwBT87y2jtch=Lg1s=d+XgJ0sJS0TV8VQT8g_Xtg@mail.gmail.com>
<CA+i5Jwbc2B=CT1JxVc7Tke5JFRpBfhyzLA__tdr6t1GckVCwQg@mail.gmail.com>
On Tue, May 10, 2022 at 6:29 AM Shaozhong SHI <[email protected]> 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.
view thread (4+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Set timeout just on a query?
In-Reply-To: <CALj2ACXH+=1T3QKtwhc9S2_CDR+ndVUE8fph8Xo1puRp+vf-vg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox