From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Geoffrey Wossum <geoffrey@pager.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problems upgrading from 7.1.3
Date: Thu, 6 Feb 2003 18:01:47 +0530
Message-ID: <200302061801.47318.mallah@trade-india.com> (raw)
In-Reply-To: <28623.1044472378@sss.pgh.pa.us>
References: <200302051128.35997.geoffrey@pager.net>
<28623.1044472378@sss.pgh.pa.us>
Hmmm I face the same problem and it got solved.
In my case the message "Invalid command \N" was coming
during COPY command execution when some other SQL command had
failed prior to COPY execution. ie the COPY command and data
in that part were perfectly fine.
how i came to know abt it was by redirecting STDERR to a seperate
file while restoring and carefully going thru it after the
errors started to come.
you can do something like.
PGUSER=postgres /usr/local/pgsql-7.3.1/bin/psql -d template1 < survey1.sql 2 > errors
regds
mallah.
On Thursday 06 February 2003 12:42 am, Tom Lane wrote:
> Geoffrey Wossum <geoffrey@pager.net> writes:
> > I then took that file over to test machine running PostgreSQL 7.3.1,
>
> Er, how did you copy the file over exactly?
>
> This smells to me like it could be a newline-formatting problem (COPY is
> pretty picky about its newlines). If you passed the file through
> anything that might choose to convert Unix newlines to DOS newlines,
> you would have that problem.
>
> BTW, the very best way to do this sort of upgrade is to use the newer
> version's pg_dump (ie, 7.3.1's pg_dump) to extract data from the older
> server. The newer pg_dump will know how to apply any SQL compatibility
> adjustments that might be appropriate. I do not think that will make
> any difference to a COPY-data-format problem, but it could help for
> other things.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
--
Regds
Mallah
----------------------------------------
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)
Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.
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: mallah@trade-india.com, tgl@sss.pgh.pa.us, geoffrey@pager.net
Subject: Re: Problems upgrading from 7.1.3
In-Reply-To: <200302061801.47318.mallah@trade-india.com>
References: <200302051128.35997.geoffrey@pager.net> <28623.1044472378@sss.pgh.pa.us> <200302061801.47318.mallah@trade-india.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