Re: garbage in psql -l - Mailing list pgsql-hackers

From Tom Lane
Subject Re: garbage in psql -l
Date
Msg-id 22057.1259090367@sss.pgh.pa.us
Whole thread Raw
In response to Re: garbage in psql -l  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: garbage in psql -l
Re: garbage in psql -l
Re: garbage in psql -l
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Anyway, that patch to set the client encoding automatically from the
> locale sounds even more useful now.

I think you're being overoptimistic to assume that that's going to
eliminate the issue.  It might patch things for Oleg's particular
configuration; but the real problem IMO is that people are depending
on ~/.psqlrc to set encoding/locale related behavior, and that file
isn't read before executing -l/-c (not to mention -X).

I wonder whether the most prudent solution wouldn't be to prevent
default use of linestyle=unicode if ~/.psqlrc hasn't been read.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: garbage in psql -l
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] Updating column on row update