From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: regression test client encoding |
Date: | 2011-04-15 20:46:48 |
Message-ID: | 1302900408.3774.27.camel@vanquo.pezone.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, 2011-04-15 at 16:09 -0400, Tom Lane wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> > What I'd suggest is that we take out the bit of code in pg_regress.c
> > that overrides the client encoding.
>
> That doesn't seem like a particularly good idea in view of the recent
> changes in psql to try to intuit a default encoding from its locale
> environment. If I say --encoding in the command line, that means I want
> that encoding, not an environment-dependent one.
Actually, in light of that we might want to override PGCLIENTENCODING to
SQL_ASCII, so we get back the results in ASCII (assuming an all-ASCII
test), instead of whatever the client encoding might say, which might
not be an ASCII superset.
But I still don't see a use case for the user setting the client
encoding when the test suite is run. This can only make things worse,
not better.
> Seems to me that plpython_unicode.sql could set the client encoding if
> it wants to, regardless of what pg_regress.c might think.
Yes, that would make sense in any case.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-04-15 21:11:41 | Re: regression test client encoding |
Previous Message | Peter Eisentraut | 2011-04-15 20:36:00 | Re: [COMMITTERS] pgsql: Rename pg_regress option --multibyte to --encoding |