Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id A2F491336B42 for ; Mon, 3 Jan 2011 10:04:29 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 09362-03 for ; Mon, 3 Jan 2011 14:04:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mimolette.dalibo.net (unknown [212.85.154.222]) by mail.postgresql.org (Postfix) with ESMTP id 734F31336971 for ; Mon, 3 Jan 2011 10:04:22 -0400 (AST) Received: from marco-dalibo.localnet (gev44-1-78-228-108-65.fbx.proxad.net [78.228.108.65]) by mimolette.dalibo.net (Postfix) with ESMTPSA id 1B6B6D8096; Mon, 3 Jan 2011 15:04:22 +0100 (CET) From: Marc Cousin To: Robert Haas Subject: Re: BUG #5801: characters not encoded properly for column names Date: Mon, 3 Jan 2011 15:04:20 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.36-ARCH; KDE/4.5.4; x86_64; ; ) Cc: pgsql-bugs@postgresql.org References: <201012231018.oBNAIfdF020454@wwwmaster.postgresql.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Message-Id: <201101031504.21112.cousinmarc@gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.105 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RDNS_NONE=0.793, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201101/5 X-Sequence-Number: 29027 The Tuesday 28 December 2010 12:49:20, Robert Haas wrote : > On Tue, Dec 28, 2010 at 4:01 AM, Marc Cousin wrote: > > 2010/12/27 Robert Haas : > >> On Thu, Dec 23, 2010 at 5:18 AM, Marc Cousin =20 wrote: > >>> With the Windows server : > >>> test=3D# SET client_encoding TO 'win1252'; > >>> SET > >>=20 > >> I have a vague recollection that the argument to SET client_encoding > >> isn't validated on Windows, and if you enter a value that it doesn't > >> like it simply silently doesn't work. Am I wrong? What happens if > >> you do: > >>=20 > >> SET client_encoding TO > >> 'some_really_long_string_that_is_almost_certainly_not_a_valid_encoding= '; > >=20 > > Here it is=85 > >=20 > > postgres=3D# SET client_encoding TO 'foo'; > > ERROR: invalid value for parameter "client_encoding": "foo" > >=20 > > (It does the same with your really long string by the way :) ) > >=20 > > Seems validated to me ? >=20 > Hrm, OK. Well, you just used up my one guess. :-( Sorry about that. Anyone else wanting to take a guess ? :)