Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 9D7FD5B1CA0 for ; Fri, 11 Nov 2011 12:48:35 -0400 (AST) 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 56328-10 for ; Fri, 11 Nov 2011 16:48:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mail.postgresql.org (Postfix) with SMTP id 737335B1C9F for ; Fri, 11 Nov 2011 12:48:29 -0400 (AST) Received: (qmail invoked by alias); 11 Nov 2011 16:48:26 -0000 Received: from a88-115-218-165.elisa-laajakaista.fi (EHLO [10.0.0.102]) [88.115.218.165] by mail.gmx.net (mp072) with SMTP; 11 Nov 2011 17:48:26 +0100 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX19tzopiAR9tUvdpNVzZ1VMZBeSaCDE9XWAxePnj0b eTvWkspOM+W/qH Message-ID: <1321030104.14677.2.camel@vanquo.pezone.net> Subject: Re: BUG #6288: Is ALTER ROLE set client_encoding broken in 9.1? From: Peter Eisentraut To: Tom Lane Cc: Maxim Boguk , pgsql-bugs@postgresql.org Date: Fri, 11 Nov 2011 18:48:24 +0200 In-Reply-To: <20758.1320971432@sss.pgh.pa.us> References: <201111101109.pAAB9Vja074963@wwwmaster.postgresql.org> <7531.1320936943@sss.pgh.pa.us> <20758.1320971432@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.3-2 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-3.1 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-1.201 X-Spam-Level: X-Archive-Number: 201111/93 X-Sequence-Number: 31688 On tor, 2011-11-10 at 19:30 -0500, Tom Lane wrote: > I think psql only pays attention to its locale when stdout is a tty. > Now *why* it acts like that, I'll leave for Peter to defend. We would have to review the original discussion about that. I can see arguments for doing it that way and for not doing it that way. This, however, still doesn't explain why a ALTER ROLE ... SET client_encoding is not taking effect. After all, a plain SET client_encoding still works.