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

From Andreas Seltenreich
Subject Re: 9.3.9 and pg_multixact corruption
Date
Msg-id 87eghndjyg.fsf@credativ.de
Whole thread Raw
In response to Re: 9.3.9 and pg_multixact corruption  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: 9.3.9 and pg_multixact corruption  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Alvaro Herrera writes:

> Jim Nasby wrote:
>> Do we officially not support anything > -O2? If so it'd be nice if configure
>> threw at least a warning (if not an error that you had to explicitly
>> over-ride).
>
> Keep in mind this is Sun OS C -- not one of the most popular compilers
> in the world.  I don't know what you suggest: have a test program that
> configure runs and detects whether the compiler does the wrong thing?
> It doesn't seem a sane idea to maintain test cases for all known
> compiler bugs ...

I think the intention was to make configure complain if there's a -O > 2
in CFLAGS.

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.

regards,
Andreas



pgsql-hackers by date:

Previous
From: Andreas Seltenreich
Date:
Subject: Re: 9.3.9 and pg_multixact corruption
Next
From: Torsten Zuehlsdorff
Date:
Subject: Re: No Issue Tracker - Say it Ain't So!