X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id AD250B430D8 for ; Sun, 6 Jul 2003 17:57:47 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 95693-04 for ; Sun, 6 Jul 2003 14:57:15 -0300 (ADT) Received: from HUGIN (213.237.12.36.adsl.ynoe.worldonline.dk [213.237.12.36]) by svr1.postgresql.org (Postfix) with ESMTP id 3F60BB42168 for ; Sun, 6 Jul 2003 14:57:14 -0300 (ADT) Received: from amavis by HUGIN with scanned-ok (Exim 3.12 #1 (Debian)) id 19ZDl5-0000n1-00 for ; Sun, 06 Jul 2003 19:57:07 +0200 Received: from athlon-pc ([10.0.0.2] helo=athlon-800) by HUGIN with esmtp (Exim 3.12 #1 (Debian)) id 19ZDl3-0000mt-00 for ; Sun, 06 Jul 2003 19:57:05 +0200 From: "Soeren Laursen" To: pgsql-admin@postgresql.org Date: Sun, 06 Jul 2003 19:57:12 +0200 MIME-Version: 1.0 Subject: Migrating from 7.1 to 7.2 using pg_dump/pg_restore fails - UNICODE error Reply-To: soeren.laursen@scrooge.dk Message-ID: <3F087F18.11871.1F94D4B@localhost> X-mailer: Pegasus Mail for Windows (v4.02) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body X-Virus-Scanned: by AMaViS perl-11 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/53 X-Sequence-Number: 9394 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=F8ren Laursen