Re: 9.3.9 and pg_multixact corruption

Поиск
Список
Период
Сортировка
От Andreas Seltenreich
Тема Re: 9.3.9 and pg_multixact corruption
Дата
Msg-id 87eghndjyg.fsf@credativ.de
обсуждение исходный текст
Ответ на Re: 9.3.9 and pg_multixact corruption  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: 9.3.9 and pg_multixact corruption  (Robert Haas <robertmhaas@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Andreas Seltenreich
Дата:
Сообщение: Re: 9.3.9 and pg_multixact corruption
Следующее
От: Torsten Zuehlsdorff
Дата:
Сообщение: Re: No Issue Tracker - Say it Ain't So!