public inbox for [email protected]  
help / color / mirror / Atom feed
From: Greg Sabino Mullane <[email protected]>
To: ISHAN CHHANGANI . <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Timeout gets unset on a syntax error.
Date: Wed, 29 May 2024 09:19:10 -0400
Message-ID: <CAKAnmmKmwKhPPrqpZMp65mr4vT_CwQQHQB4bvAzXdbuKq_DwzA@mail.gmail.com> (raw)
In-Reply-To: <SL2P216MB1380EF37EA7D6193C83622C6F5F22@SL2P216MB1380.KORP216.PROD.OUTLOOK.COM>
References: <SL2P216MB1380EF37EA7D6193C83622C6F5F22@SL2P216MB1380.KORP216.PROD.OUTLOOK.COM>

On Wed, May 29, 2024 at 6:29 AM ISHAN CHHANGANI . <
[email protected]> wrote:

> Is there some code within Postgres that resets/removes the signals in case
> a query hits any error?
>

See the comment and call to disable_all_timeouts() in postgres.c, part of
the cleanup-after-exception efforts:

https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/backend/tcop/postgres.c#l4356


Cheers,
Greg


view thread (2+ 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: Timeout gets unset on a syntax error.
  In-Reply-To: <CAKAnmmKmwKhPPrqpZMp65mr4vT_CwQQHQB4bvAzXdbuKq_DwzA@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