pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Geoffrey Wossum <geoffrey@pager.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problems upgrading from 7.1.3
Date: Wed, 5 Feb 2003 13:45:46 -0600
Message-ID: <200302051345.46421.geoffrey@pager.net> (raw)
In-Reply-To: <28623.1044472378@sss.pgh.pa.us>
References: <200302051128.35997.geoffrey@pager.net>
	<28623.1044472378@sss.pgh.pa.us>

On Wednesday 05 February 2003 01:12 pm, Tom Lane wrote:

> Er, how did you copy the file over exactly?

scp

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

No, looking at the file on the machine I dumped it on, there really are '\N's 
in it.  And adding explicit "WITH NULL AS '\N'" clauses to the COPY's didn't 
help any either.

Bjoern suggested I add "-d" or "-D" to the pg_dump/pg_dumpall command line, 
which worked flawlessly, although recreating the database was a bit slow.

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

I originally used 7.3.1's pg_dumpall to dump the 7.1.3's database as 
recommended in the admin manual, but had the same result.  Maybe I forgot to 
mention that in my original email.  There were a lot of combinations I had to 
mention ^_^

Thanks,
---
Geoffrey Wossum
Software Engineer
Long Range Systems - http://www.pager.net




view thread (13+ messages)  latest in thread

Message-ID: <200302051345.46421.geoffrey@pager.net>
Permalink:  ../200302051345.46421.geoffrey@pager.net/
Also on:    postgresql.org/message-id/200302051345.46421.geoffrey@pager.net

 · 

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: geoffrey@pager.net, tgl@sss.pgh.pa.us
  Subject: Re: Problems upgrading from 7.1.3
  In-Reply-To: <200302051345.46421.geoffrey@pager.net>
  References: <200302051128.35997.geoffrey@pager.net> <28623.1044472378@sss.pgh.pa.us> <200302051345.46421.geoffrey@pager.net>

* 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