Re: Terminating a backend

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Terminating a backend
Date: 2008-03-07 01:34:29
Message-ID: 29980.1204853669@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> I have an idea for this TODO item:
> ...
> 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.

How does that differ from what happens now?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2008-03-07 01:40:56 Re: Terminating a backend
Previous Message Bruce Momjian 2008-03-07 01:21:44 Terminating a backend

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2008-03-07 01:40:56 Re: Terminating a backend
Previous Message Bruce Momjian 2008-03-07 01:21:44 Terminating a backend