From 86a3f2d492f19da1f4be8ba099747ac5c83c43bb Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 16 Sep 2011 16:35:51 -0400 Subject: 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 --- doc/src/sgml/file-fdw.sgml | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'doc/src') 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 @@ - COPY's OIDS, FORCE_QUOTE, - and FORCE_NOT_NULL options are currently not supported by + A column of a foreign table created using this wrapper can have the + following options: + + + + + + force_not_null + + + + 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 null option). This has the same effect + as listing the column in COPY's + FORCE_NOT_NULL option. + + + + + + + + COPY's OIDS and + FORCE_QUOTE options are currently not supported by file_fdw. - These options can only be specified for a foreign table, not in the - options of the 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 file_fdw foreign-data wrapper, nor in the options of a server or user mapping using the wrapper. -- cgit v1.2.3