diff options
author | Itagaki Takahiro <itagaki.takahiro@gmail.com> | 2011-02-21 14:08:04 +0900 |
---|---|---|
committer | Itagaki Takahiro <itagaki.takahiro@gmail.com> | 2011-02-21 14:32:40 +0900 |
commit | 3cba8240a195c4f323e3f934bfeab308434a9973 (patch) | |
tree | 39c4641db5d73fb2ecb30a2807845aff53f3714c /contrib/file_fdw | |
parent | 48d25bac9f024f36b43cbba58778adf9ad0207c6 (diff) | |
download | postgresql-3cba8240a195c4f323e3f934bfeab308434a9973.tar.gz |
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.
Diffstat (limited to 'contrib/file_fdw')
-rw-r--r-- | contrib/file_fdw/file_fdw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/file_fdw/file_fdw.c b/contrib/file_fdw/file_fdw.c index 265afb5d9b..6a84a00e8d 100644 --- a/contrib/file_fdw/file_fdw.c +++ b/contrib/file_fdw/file_fdw.c @@ -55,6 +55,7 @@ static struct FileFdwOption valid_options[] = { { "quote", ForeignTableRelationId }, { "escape", ForeignTableRelationId }, { "null", ForeignTableRelationId }, + { "encoding", ForeignTableRelationId }, /* * force_quote is not supported by file_fdw because it's for COPY TO. |