Re: possible bug not in open items - Mailing list pgsql-bugs

From Jeff Davis
Subject Re: possible bug not in open items
Date
Msg-id 1239313336.6287.6.camel@dell.linuxdev.us.dell.com
Whole thread Raw
In response to Re: possible bug not in open items  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: possible bug not in open items  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Thu, 2009-04-09 at 12:59 -0400, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Where are we on this?
>
> Pretty much nowhere --- there's no proposed patch, and I don't think
> it's exactly trivial.  Do you want to put it on TODO?

Here is a patch that does what I think Heikki was suggesting. If a
proper fix is non-trivial, then I assume there's some problem with my
patch, but I'll post it for the archives anyway.

I don't see any obvious protocol synchronization problem, and it looks
like DoingCommandRead protects against that in the case of SIGINT to a
backend. And in the case of SIGTERM to a backend, the connection will be
terminated anyway.

Regards,
    Jeff Davis

Attachment

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: possible bug not in open items
Next
From: Fujii Masao
Date:
Subject: Re: BUG #4752: sourceline in pg_settings indicates wrong number