Re: regression test client encoding
От | Tom Lane |
---|---|
Тема | Re: regression test client encoding |
Дата | |
Msg-id | 1217.1302901901@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: regression test client encoding (Peter Eisentraut <peter_e@gmx.net>) |
Список | pgsql-hackers |
Peter Eisentraut <peter_e@gmx.net> writes: > On Fri, 2011-04-15 at 16:09 -0400, Tom Lane wrote: >> 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. Well, if you set client_encoding to that, what you will get is no conversion, which is exactly the same result as what you'll get from setting it the same as server_encoding, which is the current behavior. regards, tom lane
В списке pgsql-hackers по дате отправления: