Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E948B18E0E8A for ; Thu, 10 Nov 2011 07:09:32 -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 59900-10 for ; Thu, 10 Nov 2011 11:09:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 4DC7718E0E89 for ; Thu, 10 Nov 2011 07:09:32 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id pAAB9VIt074964 for ; Thu, 10 Nov 2011 11:09:31 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id pAAB9Vja074963; Thu, 10 Nov 2011 11:09:31 GMT (envelope-from www) Date: Thu, 10 Nov 2011 11:09:31 GMT Message-Id: <201111101109.pAAB9Vja074963@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6288: Is ALTER ROLE set client_encoding broken in 9.1? From: "Maksym Boguk" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201111/74 X-Sequence-Number: 31669 The following bug has been logged online: Bug reference: 6288 Logged by: Maksym Boguk Email address: maxim.boguk@gmail.com PostgreSQL version: 9.1 Operating system: Linux Ubuntu Description: Is ALTER ROLE set client_encoding broken in 9.1? Details: I found common way deal with legacy applications encoding issues through ALTER ROLE ... set client_encoding '...'; Doesn't work at 9.1 database: test: postgres@db13:/home/mboguk$ psql psql (9.1.1) Type "help" for help. postgres=# CREATE DATABASE test WITH TEMPLATE = template0 ENCODING='KOI8R' LC_COLLATE = 'ru_RU.KOI8-R' LC_CTYPE = 'ru_RU.KOI8-R'; CREATE DATABASE postgres=# create role test with login; CREATE ROLE postgres=# alter role test set client_encoding to 'KOI8R'; ALTER ROLE postgres=# \q postgres@db13:/home/mboguk$ psql -U test psql (9.1.1) Type "help" for help. test=> show client_encoding ; client_encoding ----------------- UTF8 (1 row) The same way work without any issues with 8.3 and 8.4. PS: it's possible i'm missing something obvious.