Re: [HACKERS] Function to kill backend - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: [HACKERS] Function to kill backend
Date
Msg-id 200407242255.i6OMtXo26019@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] Function to kill backend  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > OK, I see your point.  Can anyone remember why this was needed?  I
> > remember Magnus wanted query cancel, but what was the logic for session
> > termination?
>
> I think the argument for it went along the lines of "what if you've got
> a misbehaving client that continually issues expensive queries, so
> canceling any one query doesn't help?"  I found this unconvincing, as
> a client that obstreperous might simply reconnect and start issuing the
> same queries again; so having a session-kill tool doesn't really get you
> much further.  I recall being voted down though ...

Well, seems you have enough reason to suspect this code, and being so
near to beta I think we can remove it and come back to it later if
people still want it.  I remember the "cancel" being the key feature,
and termination was more of a "nice have" item.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Function to kill backend
Next
From: Bruce Momjian
Date:
Subject: Re: logfile subprocess and Fancy File Functions