Re: Postgres storing time in strange manner

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>, Casey Allen Shobe <cshobe(at)secureworks(dot)net>, Thomas Lockhart <lockhart(at)fourpalms(dot)org>, pgsql-bugs(at)postgreSQL(dot)org
Subject: Re: Postgres storing time in strange manner
Date: 2002-09-17 06:07:31
Message-ID: 21141.1032242851@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-novice

I said:
> I had success with this test:

BTW, some digging in the assembly code shows that the actual problem is
this: instead of emitting "x / 3600.0", with -ffast-math the compiler
emits the equivalent of "x * (double) (1.0 / 3600.0)". It's the
last-bit inaccuracy of the latter constant that's killing us.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message pgsql-bugs 2002-09-17 14:05:05 Bug #771: rewrite rules on update or insert do not report errors
Previous Message Tom Lane 2002-09-17 06:01:32 Re: Postgres storing time in strange manner

Browse pgsql-novice by date

  From Date Subject
Next Message Wim 2002-09-17 08:11:41 Still big problems with pg_dump!
Previous Message Tom Lane 2002-09-17 06:01:32 Re: Postgres storing time in strange manner