Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 5C8DD9F95B5 for ; Mon, 5 Nov 2007 08:16:52 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 39516-01 for ; Mon, 5 Nov 2007 08:16:48 -0400 (AST) X-Greylist: delayed 00:20:53.230117 by SQLgrey-1.7.5 Received: from sharp.noc24x7.com (unknown [69.56.128.138]) by postgresql.org (Postfix) with ESMTP id D17549F958B for ; Mon, 5 Nov 2007 08:16:48 -0400 (AST) Received: from [59.92.89.68] (helo=[192.168.2.45]) by sharp.noc24x7.com with esmtpa (Exim 4.68) (envelope-from ) id 1Ip0Ye-0006UE-H0 for pgsql-sql@postgresql.org; Mon, 05 Nov 2007 17:25:56 +0530 Mime-Version: 1.0 (Apple Message framework v746.2) Content-Transfer-Encoding: 7bit Message-Id: <429AF276-BFD9-4370-8805-F51320F1A150@thenilgiris.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: pgsql-sql@postgresql.org From: Kenneth Gonsalves Subject: changing encoding of a postgres database Date: Mon, 5 Nov 2007 17:25:58 +0530 X-Mailer: Apple Mail (2.746.2) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sharp.noc24x7.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - thenilgiris.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/11 X-Sequence-Number: 29539 hi, I recently did a dist-upgrade from sarge to etch on a server with a bunch of postgresql databases (7.4.9). Many of these had encoding set as unicode and contained a lot of unicode data. After the dist- upgrade, I find some of these databases are now encoded as latin1 - and I cannot properly retrieve the unicode data or add now unicode data. I tried pg_dump, dropdb, createdb with E=unicode and the restore with psql -f, but the restoration barfs on the first occurence of unicode data. Any solution? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/