David Blewett <da...@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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers