Re: BUG #6082: server segfault - pg_stat_reset_shared(null) - Mailing list pgsql-bugs

From Magnus Hagander
Subject Re: BUG #6082: server segfault - pg_stat_reset_shared(null)
Date
Msg-id CABUevEzPEXyqdfyWCDh6Lm6AOjFPBzrutB22_pAszHgEsorisg@mail.gmail.com
Whole thread Raw
In response to Re: BUG #6082: server segfault - pg_stat_reset_shared(null)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Wed, Jun 29, 2011 at 23:52, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> On Wed, Jun 29, 2011 at 15:31, Steve Haslam <araqnid@googlemail.com> wro=
te:
>>> =3D> select pg_stat_reset_shared(null)
>>> *server segfault*
>
>> Thanks for the report - fixed, and will be in next releases.
>
> Seems like the more appropriate fix in HEAD is to mark the function
> strict in pg_proc.h.

I considered that, but gave it up when I realized it would require a
new initdb and I wanted the same fix everywhere. But agreed that it's
cleaner, so I've reverted my previous patch on HEAD and made this
change instead. Left the old patch on backbranches (including 9.1) so
we don't force an initdb there...


--=20
=A0Magnus Hagander
=A0Me: http://www.hagander.net/
=A0Work: http://www.redpill-linpro.com/

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: view + explain + index scan -> bogus varno: 65001 (with some variations)
Next
From: Chris Bandy
Date:
Subject: Re: BUG #6080: information_schema.columns.column_default contains NULL inconsistently