Re: Timeout gets unset on a syntax error.

From: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
To: "ISHAN CHHANGANI (dot)" <f20200230(at)hyderabad(dot)bits-pilani(dot)ac(dot)in>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Timeout gets unset on a syntax error.
Date: 2024-05-29 13:19:10
Message-ID: CAKAnmmKmwKhPPrqpZMp65mr4vT_CwQQHQB4bvAzXdbuKq_DwzA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, May 29, 2024 at 6:29 AM ISHAN CHHANGANI . <
f20200230(at)hyderabad(dot)bits-pilani(dot)ac(dot)in> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2024-05-29 14:14:49 Re: Pgpool with high availability
Previous Message Alexander Staubo 2024-05-29 12:36:24 Re: Use of inefficient index in the presence of dead tuples