aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-09-16 16:35:51 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-09-16 16:35:51 -0400
commit86a3f2d492f19da1f4be8ba099747ac5c83c43bb (patch)
tree4bbf0b714b9b914474a550b1b42b76824af8e870 /doc/src
parent9d306c66e63eb7f45eab9475b3f96c3134bacac6 (diff)
downloadpostgresql-86a3f2d492f19da1f4be8ba099747ac5c83c43bb.tar.gz
postgresql-86a3f2d492f19da1f4be8ba099747ac5c83c43bb.zip
Add FORCE_NOT_NULL support to the file_fdw foreign data wrapper.
This is implemented as a per-column boolean option, rather than trying to match COPY's convention of a single option listing the column names. Shigeru Hanada, reviewed by KaiGai Kohei
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/file-fdw.sgml31
1 files changed, 27 insertions, 4 deletions
diff --git a/doc/src/sgml/file-fdw.sgml b/doc/src/sgml/file-fdw.sgml
index 8497d9a45f5..dd712e92636 100644
--- a/doc/src/sgml/file-fdw.sgml
+++ b/doc/src/sgml/file-fdw.sgml
@@ -111,14 +111,37 @@
</variablelist>
<para>
- <command>COPY</>'s <literal>OIDS</literal>, <literal>FORCE_QUOTE</literal>,
- and <literal>FORCE_NOT_NULL</literal> options are currently not supported by
+ A column of a foreign table created using this wrapper can have the
+ following options:
+ </para>
+
+ <variablelist>
+
+ <varlistentry>
+ <term><literal>force_not_null</literal></term>
+
+ <listitem>
+ <para>
+ This is a boolean option. If true, it specifies that values of the
+ column should not be matched against the null string (that is, the
+ file-level <literal>null</literal> option). This has the same effect
+ as listing the column in <command>COPY</>'s
+ <literal>FORCE_NOT_NULL</literal> option.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ </variablelist>
+
+ <para>
+ <command>COPY</>'s <literal>OIDS</literal> and
+ <literal>FORCE_QUOTE</literal> options are currently not supported by
<literal>file_fdw</>.
</para>
<para>
- These options can only be specified for a foreign table, not in the
- options of the <literal>file_fdw</> foreign-data wrapper, nor in the
+ These options can only be specified for a foreign table or its columns, not
+ in the options of the <literal>file_fdw</> foreign-data wrapper, nor in the
options of a server or user mapping using the wrapper.
</para>