X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id B4BA69FA43C for ; Thu, 20 Jul 2006 18:54:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 78957-07 for ; Thu, 20 Jul 2006 21:54:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from bay0-omc3-s8.bay0.hotmail.com (bay0-omc3-s8.bay0.hotmail.com [65.54.246.208]) by postgresql.org (Postfix) with ESMTP id 7BE029FA434 for ; Thu, 20 Jul 2006 18:54:46 -0300 (ADT) Received: from hotmail.com ([65.54.162.39]) by bay0-omc3-s8.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 20 Jul 2006 14:54:45 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 20 Jul 2006 14:54:45 -0700 Message-ID: Received: from 65.54.162.200 by by108fd.bay108.hotmail.msn.com with HTTP; Thu, 20 Jul 2006 21:54:40 GMT X-Originating-IP: [64.237.4.140] X-Originating-Email: [amushayeed@hotmail.com] X-Sender: amushayeed@hotmail.com From: "Abu Mushayeed" To: pgsql-admin@postgresql.org Subject: Other Characterset to UTF8 Date: Thu, 20 Jul 2006 14:54:40 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 20 Jul 2006 21:54:45.0095 (UTC) FILETIME=[1CB57F70:01C6AC47] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.907 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, MSGID_FROM_MTA_HEADER, SPF_PASS X-Spam-Level: * X-Archive-Number: 200607/168 X-Sequence-Number: 22414 We just upgraded our database from LAIN1 to UTF8 and some of the data imports were failing due to character set mismatch. So, after reading the documentation, here is what we are doing. According to the documentation it says that the database does automatic characterset conversion. So based on this fact, we are doing the following at the psql prompt: 1. set client_encoding = 'LATIN1'; 2. COPY FROM '