Received: from mail.alter.pl (blue.alter.pl [212.244.165.40]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fA6HvGm79449 for ; Tue, 6 Nov 2001 12:57:17 -0500 (EST) (envelope-from radek@alter.pl) Received: by mail.alter.pl (Postfix, from userid 500) id B46665B0E0; Tue, 6 Nov 2001 18:57:05 +0100 (CET) Date: Tue, 6 Nov 2001 18:57:05 +0100 From: Radoslaw Stachowiak To: pgsql-admin@postgresql.org Subject: strange behaviour of gettimeofday() and pg_dump Message-ID: <20011106185705.Q7681@blue.alter.pl> Mail-Followup-To: pgsql-admin@postgresql.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Archive-Number: 200111/21 X-Sequence-Number: 2546 Intro data: 1. table with one (from many) columns: timestamp | timestamp with time zone | not null default timeofday() used because I need better time resultion than just second provided by use of now(). 2. pg_dump database > file now, in such file, there are somtimes (it depends on specific data) entries like this (only this column): 07:32:60 <- 60 seconds! and such dump is useless for 'cat file|pgsql database' beacuse psql refuses such entries. Looks like that one of them (pg_dump or psql) should be fixed to match the other. Please look, that column has strict type (timestamp with time zone) this is postgresql 7.1.3 speaking ;-) any help/info appreciated. so far, I just correct this errors by hand before loading db (which occurs very seldom). BTW, Ive seen entries like: 6:59:60, which are hard to automated, because the change touches even an hour. -- radoslaw.stachowiak.........................................http://alter.pl/