From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | josh(at)agliodbs(dot)com, Magnus Hagander <mha(at)sollentuna(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Function to kill backend |
Date: | 2004-04-06 19:43:58 |
Message-ID: | 200404061943.i36JhwO02058@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > OK, you have a runaway report. You want to stop it. Query cancel is
> > only going to stop the current query, and once you do that the next
> > query is fed in so there is no way to actually stop the report,
> > especially if the report is not being run from the same machine as the
> > server (you can't kill the report process).
>
> > I don't think most apps reconnect on disconnect, except maybe pooled
> > connections where you don't expect your state to be stable between
> > connections. Certainly most reports can't just reconnect and keep
> > going.
>
> You're hypothecating a report generator that can recover from failed
> queries, but not a failed connection? Seems a rather contrived case.
> Stupid apps are most likely gonna curl up and die on any unexpected
> error (which is what the query cancel would look like to them). Smart
> apps may try harder to recover than you think.
I figured some reports just continue on failed queries. Is that
accurate? I don't know, but I know a psql script will continue, no?
Will psql return an error code on exit from cancel? I think it does but
am not sure.
First people objected to this on security grounds, now that those were
beat down, we have use-case complaints. Not having a way to kill
backends is like having no way to kill a process except rebooting the
server.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-04-06 19:49:31 | Re: Function to kill backend |
Previous Message | Tom Lane | 2004-04-06 19:39:59 | Re: Function to kill backend |