pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Soeren Laursen <sl@scrooge.dk>
To: pgsql-admin@postgresql.org
Subject: Migrating from 7.1 to 7.2 using pg_dump/pg_restore fails - UNICODE error
Date: Sun, 06 Jul 2003 19:57:12 +0200
Message-ID: <3F087F18.11871.1F94D4B@localhost> (raw)

Hi All,

I am upgrading my server 7.1 (a debian potato) to a new server 7.2 (a
debian woody).

On the 7.1 server I had a script that took a backup of my databases
each day using pg_dump:

/usr/local/pgsql/bin/vacuumdb -z -h localhost -U postgres $i
>/dev/null 2>&1
/usr/local/pgsql/bin/pg_dump -b -Fc -Z9 $i -h 127.0.0.1 >
"$backup_dir/$katalog/$mappe/postgresql-$i-$timeslot-database.db"

I can restore the *.db files without any problems on the 7.1. But
when I move the *.db files to the 7.2 I get the following error:

pg_restore: ERROR:  copy: line 1, Invalid UNICODE character sequence
found (0xf87665)

It is the same even if I use INSERT instead of COPY. I have no clue
that went wrong?

During a search on the internet I have seen some suggestions where I
can change the *.db file to include an
\encoding UNICODE command but this fails because I use the customer
format I guess.

No need to say that the new database is created with UNICODE
encoding?!

Regards,

Søren Laursen




view thread (5+ messages)  latest in thread

Message-ID: <3F087F18.11871.1F94D4B@localhost>
Permalink:  ../3F087F18.11871.1F94D4B@localhost/
Also on:    postgresql.org/message-id/3F087F18.11871.1F94D4B@localhost

 · 

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: sl@scrooge.dk
  Subject: Re: Migrating from 7.1 to 7.2 using pg_dump/pg_restore fails - UNICODE error
  In-Reply-To: <3F087F18.11871.1F94D4B@localhost>
  References: <3F087F18.11871.1F94D4B@localhost>

* 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