pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert M. Meyer <rmeyer@installs.com>
To: Jeff Boes <jboes@nexcerpt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Odd error in timestamp processing
Date: 23 Jul 2002 14:40:59 -0400
Message-ID: <1027449659.25568.37.camel@skymaster> (raw)
In-Reply-To: <ahk6em$uo5$1@news.hub.org>
References: <ahk6em$uo5$1@news.hub.org>

We had this problem, too.  Very annoying.  It appears to be a bug in
7.1.x.  The way we got around it was to dump the DB out to a file and
run sed on the file with the script:
s/:60/:59/

Then feeding that output into psql.

Of course, our database doesn't use ':' followed by numbers for anything
but timestamps so your mileage may vary.

Hope this helps...

Cheers!

Bob

On Tue, 2002-07-23 at 14:14, Jeff Boes wrote:
> Recently we transferred our database from a 7.1 system to a 7.2 using:
> 
>  $ pg_dump -h old_host | psql
> 
> During this, we saw this message:
> 
> 
> ERROR:  copy: line 15926, Bad timestamp external representation
> '2002-07-21 06:54:60.00-04'
> 
> (It's the '60 seconds' part of the timestamp that is causing the problem,
> I'm sure.)  How might this have happened?  Some kind of rounding error?
> 
> -- 
> Jeff Boes                                      vox 616.226.9550 ext 24
> Database Engineer                                     fax 616.349.9076
> Nexcerpt, Inc.                                 http://www.nexcerpt.com
>            ...Nexcerpt... Extend your Expertise
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://archives.postgresql.org
-- 
Robert M. Meyer
Sr. Network Administrator
DigiVision Satellite Services
14 Lafayette Sq, Ste 410
Buffalo, NY 14203-1904
(716)332-1451




view thread (4+ messages)  latest in thread

Message-ID: <1027449659.25568.37.camel@skymaster>
Permalink:  ../1027449659.25568.37.camel@skymaster/
Also on:    postgresql.org/message-id/1027449659.25568.37.camel@skymaster

 · 

reply

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: rmeyer@installs.com, jboes@nexcerpt.com
  Subject: Re: Odd error in timestamp processing
  In-Reply-To: <1027449659.25568.37.camel@skymaster>
  References: <ahk6em$uo5$1@news.hub.org> <1027449659.25568.37.camel@skymaster>

* 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