pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Maxim Boguk <maxim.boguk@gmail.com>
Cc: pgsql-bugs@postgresql.org
Cc: Peter Eisentraut <peter_e@gmx.net>
Subject: Re: BUG #6288: Is ALTER ROLE set client_encoding broken in 9.1?
Date: Thu, 10 Nov 2011 19:30:32 -0500
Message-ID: <20758.1320971432@sss.pgh.pa.us> (raw)
In-Reply-To: <CAK-MWwRUf0fPL8NxkZVBdJYd_bUWz7QO7gQV3Bb1N6iypm-2KQ@mail.gmail.com>
References: <201111101109.pAAB9Vja074963@wwwmaster.postgresql.org>
	<7531.1320936943@sss.pgh.pa.us>
	<CAK-MWwRUf0fPL8NxkZVBdJYd_bUWz7QO7gQV3Bb1N6iypm-2KQ@mail.gmail.com>

Maxim Boguk <maxim.boguk@gmail.com> writes:
> However personally I'm think this behavior is rather non-intuitive:

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

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

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.

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <20758.1320971432@sss.pgh.pa.us>
Permalink:  ../20758.1320971432@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20758.1320971432@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, maxim.boguk@gmail.com, peter_e@gmx.net
  Subject: Re: BUG #6288: Is ALTER ROLE set client_encoding broken in 9.1?
  In-Reply-To: <20758.1320971432@sss.pgh.pa.us>
  References: <201111101109.pAAB9Vja074963@wwwmaster.postgresql.org> <7531.1320936943@sss.pgh.pa.us> <CAK-MWwRUf0fPL8NxkZVBdJYd_bUWz7QO7gQV3Bb1N6iypm-2KQ@mail.gmail.com> <20758.1320971432@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox