pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inpreet Singh <Singh.Inpreet@netsity.com>
To: Michael Fuhr <mike@fuhr.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: Restore postgres database problem
Date: Thu, 27 Jan 2005 11:03:43 +0530
Message-ID: <00bc01c50431$c3997590$3c67a8c0@netsity.com> (raw)
References: <006d01c5029a$38fb4e60$3c67a8c0@netsity.com>
	<20050125213847.GA95908@winnie.fuhr.org>

*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.

Regards
Inpreet Singh

----- Original Message ----- 
From: "Michael Fuhr" <mike@fuhr.org>
To: "Inpreet Singh" <Singh.Inpreet@netsity.com>
Cc: <pgsql-admin@postgresql.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
> http://www.fuhr.org/~mfuhr/
>



view thread (9+ messages)  latest in thread

Message-ID: <00bc01c50431$c3997590$3c67a8c0@netsity.com>
Permalink:  ../00bc01c50431$c3997590$3c67a8c0@netsity.com/
Also on:    postgresql.org/message-id/00bc01c50431$c3997590$3c67a8c0@netsity.com

 · 

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: Singh.Inpreet@netsity.com, mike@fuhr.org
  Subject: Re: Restore postgres database problem
  In-Reply-To: <00bc01c50431$c3997590$3c67a8c0@netsity.com>
  References: <006d01c5029a$38fb4e60$3c67a8c0@netsity.com> <20050125213847.GA95908@winnie.fuhr.org> <00bc01c50431$c3997590$3c67a8c0@netsity.com>

* 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