X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id BD7E19DC83D for ; Fri, 17 Feb 2006 01:11:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 31008-04 for ; Fri, 17 Feb 2006 01:11:19 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from loki.globexplorer.com (loki.globexplorer.com [12.25.176.46]) by postgresql.org (Postfix) with ESMTP id 9FBF69DC800 for ; Fri, 17 Feb 2006 01:11:17 -0400 (AST) X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Subject: Something like pg_dump for 7.4 Date: Thu, 16 Feb 2006 21:11:13 -0800 Message-ID: <71E37EF6B7DCC1499CEA0316A2568328024BBF9D@loki.wc.globexplorer.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Something like pg_dump for 7.4 Thread-Index: AcYzgJKe58v/0qxQR56TGtHpYspAPw== From: "Gregory S. Williamson" To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.084 required=5 tests=[AWL=0.084] X-Spam-Score: 0.084 X-Spam-Level: X-Archive-Number: 200602/206 X-Sequence-Number: 20627 I am trying to migrate a modest sized database (the unload file is just = under a gigabyte) which is moderately complex, using schemas and the = like from 7.4 to 8.1 Alas, pg_dump appears to incompatable with my needs as it keeps = introducing invalid UTF-8 characters.=20 I have gone back and changed the offending data rows with SQL to make = damned sure there are no illegal characters. I redump, compress the = thing, scp it and try to reload. Same error every time: psql:glacier_load.sql:1017: ERROR: invalid UTF-8 byte sequence detected = near byte 0x96 CONTEXT: COPY clients, line 1751, column client_name: "XYZ Media AB&E" psql:glacier_load.sql:3019: ERROR: current transaction is aborted, = commands ignored until end of transaction block See that double space after "Media" ? That's actually a single space, a = dash, and another space: "XYZ Media - AB&E", but every export turns it = into: XYZ Media <96> AB&E Is there any way to do this ? I can't edit the resulting dump file by = hand -- it's huge. And pg_dump on 7.4 does not know how to a table = inside a schema -- it seems to be all or nothing. TIA, Greg Williamson DBA GlobeXplorer LLC