Re: Add encoding support to COPY
От | Tom Lane |
---|---|
Тема | Re: Add encoding support to COPY |
Дата | |
Msg-id | 23838.1247673855@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Add encoding support to COPY (David Blewett <david@dawninglight.net>) |
Ответы |
Re: Add encoding support to COPY
|
Список | pgsql-hackers |
David Blewett <david@dawninglight.net> writes: > Today on IRC, someone was wondering what the preferred method of > exporting data in a specific encoding via COPY was. They reply was > wrapping the COPY command in "set client_encoding='foo';", which made > me wonder how hard it would be to add an additional WITH parameter to > the actual COPY statement to specify the encoding, a la: What is the point? You'd generally have client_encoding set correctly for your usage anyway, and if you did not, the data could confuse your client-side code terribly. Offering an option to let the backend send data in the "wrong" encoding does NOT seem like a good idea to me. regards, tom lane
В списке pgsql-hackers по дате отправления: