Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 120AF1337C70 for ; Thu, 24 Mar 2011 16:37:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 93393-02-9 for ; Thu, 24 Mar 2011 19:37:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148141.authsmtp.net (outmail148141.authsmtp.net [62.13.148.141]) by mail.postgresql.org (Postfix) with ESMTP id 8032213384C5 for ; Thu, 24 Mar 2011 15:53:50 -0300 (ADT) Received: from mail-c193.authsmtp.com (mail-c193.authsmtp.com [62.13.128.118]) by punt12.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p2OIrnNl096212 for ; Thu, 24 Mar 2011 18:53:49 GMT Received: from Sidney-Stratton.local (dsl081-245-111.sfo1.dsl.speakeasy.net [64.81.245.111]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p2OIriJD017735 for ; Thu, 24 Mar 2011 18:53:45 GMT Message-ID: <4D8B9332.80308@agliodbs.com> Date: Thu, 24 Mar 2011 11:53:38 -0700 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #5944: COPY FROM doesn't work with international characters X-Enigmail-Version: 0.97a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Server-Quench: 0c05db60-5648-11e0-97bb-002264978518 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkbIhBDJB8DSAtK Gl5dNUZcKlAHXFUf XCRcFVZQTyAgG3x3 awtQfQRVaE9NVQFs Hk5NXFpTCgdsBAIA Bx8BUBxwchpGNj5y Gj8gBwovXEV9ckV4 DE9SHWRIZTRgbTRN VkBFcgVQeB5Lf0pF d1l4BiEQYWUFZHxk TlBjYmlhKw9Semx/ fy5FZg9DHRpZVhUb fyFKMw8IOAUJQCgo KVM6YkEbBkVZLUQu MRMgX04VKRkbFgxZ GUhJSCRZLkMITDYm Fxgy X-Authentic-SMTP: 61633136333939.1014:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.386 tagged_above=-5 required=5 tests=BAYES_00=-1.9, URIBL_RHS_DOB=1.514 X-Spam-Level: X-Archive-Number: 201103/316 X-Sequence-Number: 29826 I have another example of this issue with WIN1252. This line in a copy file: 659446 828 1 /6�\bH@^W^Za$H�\b�@\\/

No valid or unique HTTP objects found in XML response.

Into this table: Table "public.ep_tests" Column | Type | Modifiers ---------+--------------+----------- id | bigint | not null v_id | integer | not null status | character(1) | not null vkey | text | details | text | Results in this error while loading the data: the following error is encounted by the \copy: ERROR: missing data for column "details" CONTEXT: COPY ep_tests, line 1028752: "659446 828 1 /6�\bH@↨" The dump file was produced by using 9.0.3's pg_dump in text mode to dump an 8.2 database, then using 9.0.3's psql to load the file. Both servers are UTF8, locale WIN1252. So it looks like we're not successfully escaping characters on WIN1252. The characters in question are also latin characters. We've reproduced this on a clean install. -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com