Re: [HACKERS] Terminating a backend - Mailing list pgsql-patches

From Tom Lane
Subject Re: [HACKERS] Terminating a backend
Date
Msg-id 16439.1208016139@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Terminating a backend  (Bruce Momjian <bruce@momjian.us>)
Responses Re: [HACKERS] Terminating a backend  (Bruce Momjian <bruce@momjian.us>)
List pgsql-patches
Bruce Momjian <bruce@momjian.us> writes:
>> When we get the termination signal, why can't we just set a global
>> boolean, do a query cancel, and in the setjmp() code block check the
>> global and exit --- at that stage we know we have released all locks and
>> can exit cleanly.

> I have implemented this idea with the attached patch.

It was already explained to you why this is a bad idea.

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: libpq patch for pqtypes hook api and PGresult creation
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Terminating a backend