Re: Problem migrating dump to latest CVS snapshot.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gunnar R|nning <gunnar(at)candleweb(dot)no>
Cc: pgsql-general(at)postgresql(dot)org, Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
Subject: Re: Problem migrating dump to latest CVS snapshot.
Date: 2001-03-23 02:52:43
Message-ID: 15737.985315963@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Gunnar R|nning <gunnar(at)candleweb(dot)no> writes:
> Seems you hit the nail with your theory :

> sf-ng=# select date_part('seconds', a_accesstime) from access_log where
> a_accesstime > '2000-10-24 15:14:59' limit 1;
> date_part
> -----------
> 59.997
> (1 row)

Ah-hah. And we print that with a "%.2f" sort of format, so it rounds
off to 60.00. Even in IEEE arithmetic ;-)

I've suggested before that timestamp output should round the timestamp
value to two fractional digits *before* breaking it down into year/
month/etc. Seems like this is a perfect example of the necessity
for that. Thomas, what say you?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Lockhart 2001-03-23 03:05:30 Re: Problem migrating dump to latest CVS snapshot.
Previous Message Martijn van Oosterhout 2001-03-23 02:21:15 Re: Foreign keys/unique values and views

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 2001-03-23 02:59:24 Re: Regression testing on Irix
Previous Message Tom Lane 2001-03-23 02:07:25 Re: [HACKERS] SPI example does not work for 7.1beta4