Re: 'Bad timestamp external representation' error when restoring database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Søren Neigaard <s(dot)neigaard(at)mobilethink(dot)dk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 'Bad timestamp external representation' error when restoring database
Date: 2002-09-04 13:54:05
Message-ID: 27023.1031147645@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?iso-8859-1?Q?S=F8ren_Neigaard?= <s(dot)neigaard(at)mobilethink(dot)dk> writes:
> ERROR: copy: line 3580, Bad timestamp external representation '2002-08-23
> 08:31:60.00+02'
> PQendcopy: resetting connection

This is a known bug in older PG releases: sometimes a time like
"08:31:59.999" is mistakenly rounded off as "08:31:60.00" which of course
the timestamp reader code thinks is bogus. I'm afraid you have little
choice but to edit the dump file to fix the broken timestamps (a sed
script might help here).

You should think about updating to a more recent release ---
AFAIK this problem is fixed in 7.2.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-09-04 14:04:38 Re: clog problem
Previous Message Tom Lane 2002-09-04 13:43:54 Re: Please help - Keep getting authentication failure when trying to restore database