From: Radoslaw Stachowiak <radek@alter.pl>
To: pgsql-admin@postgresql.org
Cc: pgsql-devel@postgresql.org
Subject: strange behaviour of gettimeofday() and pg_dump
Date: Thu, 15 Nov 2001 18:35:00 +0100
Message-ID: <20011115183500.T7681@blue.alter.pl> (raw)
OK, once more post about the subject, because after some investigation
it looks like a real and serious postgres bug. (7.1.3)
table definition with one (from many) columns:
timestamp | timestamp with time zone | not null default timeofday()
and the query:
db=# select timestamp,extract( seconds from timestamp) from history where id=274259;
timestamp | date_part
---------------------------+-----------
2001-09-22 20:07:60.00+02 | 59.998003
(1 row)
as You can see, first alement shows 60.00 which is WRONG!
at first sight i thought its average, but its not -> 60.00 !!! (two zeroes after decimal period)
it causes failures at pg_dump and shows that postgres has broken timestamp type.
or maybe i don't understand sth ?
--
radoslaw.stachowiak.........................................http://alter.pl/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: radek@alter.pl, pgsql-devel@postgresql.org
Subject: Re: strange behaviour of gettimeofday() and pg_dump
In-Reply-To: <20011115183500.T7681@blue.alter.pl>
References: <20011115183500.T7681@blue.alter.pl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox