summaryrefslogtreecommitdiff
path: root/contrib/file_fdw
diff options
context:
space:
mode:
authorItagaki Takahiro <itagaki.takahiro@gmail.com>2011-02-21 14:08:04 +0900
committerItagaki Takahiro <itagaki.takahiro@gmail.com>2011-02-21 14:32:40 +0900
commit3cba8240a195c4f323e3f934bfeab308434a9973 (patch)
tree39c4641db5d73fb2ecb30a2807845aff53f3714c /contrib/file_fdw
parent48d25bac9f024f36b43cbba58778adf9ad0207c6 (diff)
downloadpostgresql-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.c1
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.