Skip site navigation (1) Skip section navigation (2)

Re: Restore postgres database problem

From: Inpreet Singh <Singh(dot)Inpreet(at)netsity(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Restore postgres database problem
Date: 2005-01-27 05:33:43
Message-ID: 00bc01c50431$c3997590$ (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
*Taken Dump :*   /usr/bin/pg_dumpall > /home/inpreet/postgres.sql  /*which
was taken at client site*/

*Restoring Dump :*   su - postgres /*This process I am doing at local site
so thats why psql and dumpall are in diff directories*/
 /usr/local/pgsql/bin/psql -d template1 < /home/inpreet/postgres.sql

Sir I have some table values which are of type timestamp and those columns
have values like
""2004-10-09 10:03:36.689993"". So is it possible that when I am restoring
values this columns are creating all sort of trouble??? as timestamp field
means date time at the time of insertion of record and I am trying to insert
earlier date time.

Inpreet Singh

----- Original Message ----- 
From: "Michael Fuhr" <mike(at)fuhr(dot)org>
To: "Inpreet Singh" <Singh(dot)Inpreet(at)netsity(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Sent: Wednesday, January 26, 2005 3:08 AM
Subject: Re: [ADMIN] Restore postgres database problem

> On Tue, Jan 25, 2005 at 10:26:25AM +0530, Inpreet Singh wrote:
> >
> > I am using postgres 7.3.4. I am trying to restore database dump using
> > psql command but getting following error.
> >
> > Taken Dump :   /usr/bin/pg_dumpall > /home/inpreet/postgres.sql
> > Restoring Dump :   su - postgres
> > /usr/local/pgsql/bin/psql -d template1 < /home/inpreet/postgres.sql
> I see that pg_dumpall and psql are in different directories.  Are
> they from different versions of PostgreSQL?  Are they connecting
> to backends running different versions?  Which commands and which
> backends are running which versions?
> > but getting error
> > ERROR:  copy: line 32, Bad date external representation '\N
> > lost synchronization with server, resetting connection
> What do the offending line and the line or two preceding it look
> like?
> -- 
> Michael Fuhr

In response to


pgsql-admin by date

Next:From: Luis SousaDate: 2005-01-27 10:01:27
Subject: Re: Restore postgres database problem
Previous:From: Tom LaneDate: 2005-01-26 21:32:55
Subject: Re: 7.4.6 pg_dump failed

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group