The CSV> format has no standard way to distinguish a
NULL> value from an empty string.
-
PostgreSQL>'s COPY> handles this using
- quoting. A NULL> is output as an empty string without
- quotes, while an empty string data value is double-quoted
- ("">). Reading values follows similar rules. You can
+
PostgreSQL>'s COPY> handles this by
+ quoting. A NULL> is output as the NULL>
+ parameter and is not quoted, while a non-NULL value matching the
+ the NULL> parameter string is quoted. Therefore, using the default
+ settings, a NULL> is written as an unquoted empty
+ string, while an empty string data value is written with double quotes
+ ("">). Reading values follows similar rules. You can
use FORCE NOT NULL> to prevent NULL> input
comparisons for specific columns.