Re: Terminating a backend - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Terminating a backend
Date
Msg-id 200803070140.m271eu603496@momjian.us
Whole thread Raw
In response to Re: Terminating a backend  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.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?

We would _terminate_/exit, not just cancel the query.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://postgres.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Terminating a backend
Next
From: Greg Smith
Date:
Subject: Re: Group Commit