Interval precision busted?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Interval precision busted?
Date: 2002-05-13 22:11:12
Message-ID: 19671.1021327872@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In current sources (compiled without --enable-integer-datetimes) I get

regression=# select interval(0) '1 day 23:44:55.667677' ;
interval
-----------------------
1 day 23:44:55.667677
(1 row)

I was expecting it to round off ... I think there's something wrong with
the arithmetic in AdjustIntervalForTypmod.

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Lamar Owen 2002-05-13 23:05:55 Discontent with development process (was:Re: pgaccess - the discussion is over)
Previous Message Tom Lane 2002-05-13 18:58:08 pg_dump DROP commands and implicit search paths