Re: 9.3.9 and pg_multixact corruption - Mailing list pgsql-hackers

From Robert Haas
Subject Re: 9.3.9 and pg_multixact corruption
Date
Msg-id CA+TgmoaCJHJnugETyDJBuW+W42kdh=ZUtt+yvoWisjHJxY3Kww@mail.gmail.com
Whole thread Raw
In response to Re: 9.3.9 and pg_multixact corruption  (Andreas Seltenreich <andreas.seltenreich@credativ.de>)
Responses Re: 9.3.9 and pg_multixact corruption
List pgsql-hackers
On Fri, Sep 25, 2015 at 3:41 AM, Andreas Seltenreich
<andreas.seltenreich@credativ.de> wrote:
> I think the intention was to make configure complain if there's a -O > 2
> in CFLAGS.

-1 on that idea.  I really don't think that we should categorically
decide we don't support higher optimization levels.  If the compiler
has a bug, then the compiler manufacturer should fix it, and it's not
our fault.  If the compiler doesn't have a bug and our stuff is
blowing up, then we have a bug and should fix it.  I suppose there
could be some grey area but hopefully not too much.

> OTOH, a unit test for multixact.c that exercises the code including
> wraparounds sounds like a desirable thing regardless of the fact that it
> could have caught this miscompilation earlier than 6 months into
> production.

Definitely.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: CustomScan support on readfuncs.c
Next
From: Robert Haas
Date:
Subject: Re: GIN vacuum bug