Skip to content

Commit 2739e1d

Browse files
committed
Add a note about CSV lines with trailing spaces.
Suggestion by Darcy Buskermolen, reworded by me.
1 parent 656fe39 commit 2739e1d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

doc/src/sgml/ref/copy.sgml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/copy.sgml,v 1.66 2005/06/02 01:21:21 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/copy.sgml,v 1.67 2005/09/05 14:44:05 adunstan Exp $
33
PostgreSQL documentation
44
-->
55

@@ -511,6 +511,19 @@ COPY <replaceable class="parameter">tablename</replaceable> [ ( <replaceable cla
511511
comparisons for specific columns.
512512
</para>
513513

514+
<note>
515+
<para>
516+
In <literal>CSV</> mode, all characters are significant. A quoted value
517+
surrounded by white space, or any characters other than
518+
<literal>DELIMITER</>, will include those characters. This can cause
519+
errors if you import data from a system that pads <literal>CSV</>
520+
lines with white space out to some fixed width. If such a situation
521+
arises you might need to preprocess the <literal>CSV</> file to remove
522+
the trailing white space, before importing the data into
523+
<productname>PostgreSQL</>.
524+
</para>
525+
</note>
526+
514527
<note>
515528
<para>
516529
CSV mode will both recognize and produce CSV files with quoted

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy