Re: Server instrumentation for 8.1

From: Alvaro Herrera <alvherre(at)surnet(dot)cl>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>, josh(at)agliodbs(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Server instrumentation for 8.1
Date: 2005-05-12 13:12:48
Message-ID: 20050512131248.GA6998@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, May 12, 2005 at 10:55:22AM +0200, Magnus Hagander wrote:

> Not kill -9. Kill -9 is "safe" because it causes a complete restart of
> the postmaster (it's the same as a backend crash, really). Kill -INT is
> also safe, because it does a simlpe query cancel.

Hmm, would it be possible to use another signal for "cancel the current
query and enter a state where no queries are accepted"? That would mean
driving the backend to a known idle state, allowing further action to
end the connection. From the client perspective, the connection is no
longer useful anyway, so he can only disconnect.

--
Alvaro Herrera (<alvherre[a]surnet.cl>)
"In a specialized industrial society, it would be a disaster
to have kids running around loose." (Paul Graham)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2005-05-12 13:15:00 Re: Server instrumentation for 8.1
Previous Message Oliver Jowett 2005-05-12 12:57:06 Re: SQL_ASCII vs. 7-bit ASCII encodings