Add ENCODING option to COPY TO/FROM and file_fdw.

Itagaki Takahiro <itagaki.takahiro@gmail.com>

Commit: 3cba8240a195c4f323e3f934bfeab308434a9973
Author: Itagaki Takahiro <itagaki.takahiro@gmail.com>
Date: 2011-02-21T05:32:40Z
Releases: 9.1.0
Add ENCODING option to COPY TO/FROM and file_fdw.
File encodings can be specified separately from client encoding.
If not specified, client encoding is used for backward compatibility.

Cases when the encoding doesn't match client encoding are slower
than matched cases because we don't have conversion procs for other
encodings. Performance improvement would be be a future work.

Original patch by Hitoshi Harada, and modified by me.

Files