From: Andrew Dunstan Date: Mon, 5 Sep 2005 14:44:05 +0000 (+0000) Subject: Add a note about CSV lines with trailing spaces. X-Git-Tag: REL8_1_0BETA2~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2739e1d1c268635f3cbc7554736d0719993a6f46;p=thirdparty%2Fpostgresql.git Add a note about CSV lines with trailing spaces. Suggestion by Darcy Buskermolen, reworded by me. --- diff --git a/doc/src/sgml/ref/copy.sgml b/doc/src/sgml/ref/copy.sgml index 188f892fa0f..34f1b496ebf 100644 --- a/doc/src/sgml/ref/copy.sgml +++ b/doc/src/sgml/ref/copy.sgml @@ -1,5 +1,5 @@ @@ -511,6 +511,19 @@ COPY tablename [ ( + + + In CSV mode, all characters are significant. A quoted value + surrounded by white space, or any characters other than + DELIMITER, will include those characters. This can cause + errors if you import data from a system that pads CSV + lines with white space out to some fixed width. If such a situation + arises you might need to preprocess the CSV file to remove + the trailing white space, before importing the data into + PostgreSQL. + + + CSV mode will both recognize and produce CSV files with quoted