Re: Timeout gets unset on a syntax error.

2024-05-29 Thread Greg Sabino Mullane
On Wed, May 29, 2024 at 6:29 AM ISHAN CHHANGANI . < f20200...@hyderabad.bits-pilani.ac.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-ex

Timeout gets unset on a syntax error.

2024-05-29 Thread ISHAN CHHANGANI .
On a particular query, I start an alarm (say for 5 sec) using RegisterTimeout , and when the alarm rings, I log something. This works fine. But if I run a query with a syntax error between the time duration, then the alarm never rings. Is there some code within Postgres that resets/removes the si