Received: from mail.alter.pl (blue.alter.pl [212.244.165.40]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fAFHZCm23181; Thu, 15 Nov 2001 12:35:16 -0500 (EST) (envelope-from radek@alter.pl) Received: by mail.alter.pl (Postfix, from userid 500) id 8E5725B0E2; Thu, 15 Nov 2001 18:35:00 +0100 (CET) Date: Thu, 15 Nov 2001 18:35:00 +0100 From: Radoslaw Stachowiak To: pgsql-admin@postgresql.org Cc: pgsql-devel@postgresql.org Subject: strange behaviour of gettimeofday() and pg_dump Message-ID: <20011115183500.T7681@blue.alter.pl> Mail-Followup-To: pgsql-admin@postgresql.org, pgsql-devel@postgresql.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200111/79 X-Sequence-Number: 2604 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/