Received: from mail1.chek.com (lenny.synacor.com [208.197.227.246]) by postgresql.org (Postfix) with SMTP id 48F82475955 for ; Tue, 23 Jul 2002 14:40:41 -0400 (EDT) Received: (qmail 10660 invoked by uid 0); 23 Jul 2002 18:40:41 -0000 Received: from perthesep.installs.com (HELO host112.installs.ops) (206.24.104.131) by lenny-private.synacor.com with SMTP; 23 Jul 2002 18:40:41 -0000 Subject: Re: Odd error in timestamp processing From: "Robert M. Meyer" To: Jeff Boes Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2-5mdk Date: 23 Jul 2002 14:40:59 -0400 Message-Id: <1027449659.25568.37.camel@skymaster> Mime-Version: 1.0 X-Archive-Number: 200207/324 X-Sequence-Number: 5008 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