Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id D8C9FDDBC27 for ; Fri, 2 Dec 2011 06:57:26 -0400 (AST) Received: from mx01.clickware.de ([78.35.13.85]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1RWQo0-0001fA-5a for pgsql-bugs@postgresql.org; Fri, 02 Dec 2011 10:57:26 +0000 Received: (qmail 3380 invoked from network); 2 Dec 2011 10:57:10 -0000 Received: from unknown (HELO tglaptp) (thomas@192.168.1.236) by mx01.clickware.de with SMTP; 2 Dec 2011 10:57:10 -0000 From: "Thomas Goerner" To: "'Craig Ringer'" Cc: References: <788D6901C0544F20B394F44AE5B2E12B@tglaptp> <4ED4446D.6010901@ringerc.id.au> Subject: Re: BUG #6308: Problem w. encoding in client Date: Fri, 2 Dec 2011 11:56:36 +0100 Message-ID: <021C7C8A088F4CFBA95CCF9A157E1986@tglaptp> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001B_01CCB0E9.71828730" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcyuP0wcwH6EJMWERe25e7AI/E7u9QCkJhVA In-Reply-To: <4ED4446D.6010901@ringerc.id.au> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201112/23 X-Sequence-Number: 31834 This is a multi-part message in MIME format. ------=_NextPart_000_001B_01CCB0E9.71828730 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello Craig, =20 it seems as if there were illegal chars in the originally dumped = database, so the dump/restore problem might be due to this. At the moment we are = doing further investigation on this issue.=20 =20 But the problem regarding message output from the client applications = still persists. We are now setting up another set of 32/64-bit (virtual) = Windows 7 machines to verify that the problem occurs only on 64 bit windows. =20 I will keep you informed. =20 =20 Regards Thomas =20 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D click:ware Informationstechnik GmbH Thomas Goerner Gesch=E4ftsf=FChrer fon: 0221 - 13 99 88-0 fax: 0221 - 13 99 88-79 Kamekestra=DFe 19 50672 K=F6ln tg@clickware.de www.clickware.de =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Kennen Sie schon unser GasDataWarehouse -=20 Die kosteng=FCnstige L=F6sung f=FCr den Austausch=20 von Gasmessdaten? www.gasdatawarehouse.de _____ =20 Von: Craig Ringer [mailto:ringerc@ringerc.id.au]=20 Gesendet: Dienstag, 29. November 2011 03:33 An: Thomas Goerner Cc: pgsql-bugs@postgresql.org Betreff: Re: [BUGS] BUG #6308: Problem w. encoding in client =20 On 11/28/2011 08:26 PM, Thomas Goerner wrote:=20 Hello Craig, =20 thanks for your answer. =20 =20 > Restore using PgAdmin III or using a unicode console.=20 > This is a limitation of using a Win1252 client encoding when restoring = > data that isn't restricted to Win1252 and cannot be fixed directly. =20 That's new to me. AFAIK pg_restore looks into the dump file and sets the client encoding accordingly (In fact the dump contains the statement SET client_encoding =3D 'UTF8';). Is this overridden by PGCLIENTENCODING? = And if so, should it be? Nope, pg_restore should be using UTF8 as the client encoding in that = case. If there are any errors or notices it won't be able to emit them = correctly on the terminal though, as win1252 can't represent everything in UTF8 = (and IIRC pg_restore doesn't recode from client_encoding to terminal encoding anyway). If the restore its self is failing then I agree that something's not = working properly, because you should be able to use a client_encoding different = to your terminal encoding. I wonder if recent changes intended to get psql = to pick up the terminal encoding automatically have had the unintended side-effect of overriding pg_restore's attempt to set the = client_encoding? I'm rather surprised you only see this on x64. You're using the same = Windows and Pg version for both x64 and x64 but only the x64 test fails? -- Craig Ringer ------=_NextPart_000_001B_01CCB0E9.71828730 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello = Craig,

 

it seems as if = there were illegal chars in the originally dumped database, so the dump/restore = problem might be due to this. At the moment we are doing further investigation = on this issue.

 =

But the problem = regarding message output from the client applications still persists. We are now = setting up another set of 32/64-bit (virtual) Windows 7 machines to verify that = the problem occurs only on 64 bit windows.

 =

I will keep you = informed.

 =

 =

Regards

=

Thomas

 

 

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
click:ware Informationstechnik GmbH
Thomas Goerner
Gesch=E4ftsf=FChrer
fon: 0221 - 13 99 88-0
fax: 0221 - 13 99 88-79
Kamekestra=DFe 19
50672 K=F6ln
tg@clickware.de
www.clickware.de
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Kennen Sie schon unser GasDataWarehouse -
Die kosteng=FCnstige L=F6sung f=FCr den Austausch
von Gasmessdaten?
www.gasdatawarehouse.de


Von: Craig Ringer [mailto:ringerc@ringerc.id.au]
Gesendet: Dienstag, 29. =
November 2011 03:33
An: Thomas Goerner
Cc: pgsql-bugs@postgresql.org
Betreff: Re: [BUGS] BUG = #6308: Problem w. encoding in client

 

On 11/28/2011 08:26 PM, Thomas = Goerner wrote:

Hello Craig,

 

thanks for your answer.

 

 

> Restore using PgAdmin III or using a unicode console. =

> This is a limitation of using a Win1252 client encoding when restoring =

> data that isn't restricted to Win1252 and cannot be fixed = directly.

 

That's new to me. AFAIK pg_restore looks into the dump file and sets the client encoding accordingly (In fact the dump contains the statement SET client_encoding =3D 'UTF8';). Is this overridden by PGCLIENTENCODING? = And if so, should it be?


Nope, pg_restore should be using UTF8 as the client = encoding in that case. If there are any errors or notices it won't be able to = emit them correctly on the terminal though, as win1252 can't represent everything = in UTF8 (and IIRC pg_restore doesn't recode from client_encoding to terminal = encoding anyway).

If the restore its self is failing then I agree that something's not = working properly, because you should be able to use a client_encoding different = to your terminal encoding. I wonder if recent changes intended to get psql to = pick up the terminal encoding automatically have had the unintended side-effect = of overriding pg_restore's attempt to set the client_encoding?

I'm rather surprised you only see this on x64. You're using the same = Windows and Pg version for both x64 and x64 but only the x64 test fails?

--
Craig Ringer

------=_NextPart_000_001B_01CCB0E9.71828730--