Re: Postgresql on itanium server

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jochen Erwied <jochen(at)erwied(dot)eu>
Cc: Marti Raudsepp <marti(at)juffo(dot)org>, muthu krishnan <muthu(dot)krishnan(dot)linux(at)gmail(dot)com>, Jochen Erwied <jochen(at)pgsql-performance(dot)erwied(dot)eu>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Postgresql on itanium server
Date: 2011-06-09 16:20:02
Message-ID: 9435.1307636402@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Jochen Erwied <jochen(at)erwied(dot)eu> writes:
> Thursday, June 9, 2011, 12:45:06 PM you wrote:
>> As the URL mentions, you can build with CFLAGS=-ffast-math, that
>> should work for PostgreSQL too.

> I just tried this with the source for 9.0.4, at least with this version the
> build will not complete since there is a check in
> src/backend/utils/adt/date.c throwing an error if FAST_MATH is active.

Yeah. See
http://archives.postgresql.org/pgsql-bugs/2002-09/msg00169.php
and following discussions, which eventually led to adding the #error.

Now this was all done in regards to PG's original floating-point
timestamp implementation. It's possible that in an integer-datetimes
build (which is now the default) we don't need to forbid -ffast-math to
prevent strange datetime results. But nobody's done the work to prove
that, because there isn't any particularly good reason to enable
-ffast-math in a database in the first place. (Other than coping with
brain-dead platforms, I guess.)

However ... I'm not sure I believe that this is related to the OP's
problem anyway. Postgres doesn't normally work with any denormalized
numbers, so the messages he's seeing probably stem from some other sort
of shortcoming in the hardware FP support. It would be interesting to
see specific examples of SQL operations that trigger the kernel message.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Greg Smith 2011-06-09 16:52:06 Re: Triggering autovacuum
Previous Message Reuven M. Lerner 2011-06-09 15:24:16 Triggering autovacuum