Skip site navigation (1) Skip section navigation (2)

Re: BUG #6288: Is ALTER ROLE set client_encoding broken in 9.1?

From: Maxim Boguk <maxim(dot)boguk(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6288: Is ALTER ROLE set client_encoding broken in 9.1?
Date: 2011-11-10 23:17:05
Message-ID: CAK-MWwRUf0fPL8NxkZVBdJYd_bUWz7QO7gQV3Bb1N6iypm-2KQ@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-bugs
Thank you very much for information. I lost some brain cells during
fighting with that problem yesterday.

However personally I'm think this behavior is rather non-intuitive:

postgres(at)db13:~$ psql -U slony -d test -c 'show client_encoding'
 client_encoding
-----------------
 UTF8
(1 row)

postgres(at)db13:~$ psql -U slony -d test -c 'show client_encoding' | head -10
 client_encoding
-----------------
 KOI8R
(1 row)


On Fri, Nov 11, 2011 at 1:55 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "Maksym Boguk" <maxim(dot)boguk(at)gmail(dot)com> writes:
>> Description:        Is ALTER ROLE set client_encoding broken in 9.1?
>
> No, but I think psql prefers to set its encoding according to its locale
> enviroment these days.
>
>                        regards, tom lane
>



-- 
Maxim Boguk
Senior Postgresql DBA.

Skype: maxim.boguk
Jabber: maxim(dot)boguk(at)gmail(dot)com

LinkedIn profile: http://nz.linkedin.com/in/maximboguk
If they can send one man to the moon... why can't they send them all?

МойКруг: http://mboguk.moikrug.ru/
Сила солому ломит, но не все в нашей жизни - солома, да и сила далеко не все.

In response to

Responses

pgsql-bugs by date

Next:From: Craig RingerDate: 2011-11-11 00:23:22
Subject: Re: HElp
Previous:From: Alexey NalbatDate: 2011-11-10 21:15:24
Subject: BUG #6290: converting interval from weeks to days

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group