Bruce Momjian <bruce(at)momjian(dot)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