From 49d3d9cf40a6b0b9d891e6bfcaeffd154d87b293 Mon Sep 17 00:00:00 2001
From: Bruce Momjian
Date: Wed, 21 Apr 2004 00:34:18 +0000
Subject: Change COPY CSV keyword to be:
FORCE QUOTE to force quotes
FORCE NOT NULL to quote null input values
---
doc/src/sgml/ref/copy.sgml | 49 +++++++++++++++++++-----------------------
doc/src/sgml/ref/psql-ref.sgml | 6 +++---
2 files changed, 25 insertions(+), 30 deletions(-)
(limited to 'doc/src')
diff --git a/doc/src/sgml/ref/copy.sgml b/doc/src/sgml/ref/copy.sgml
index 7d53d5d3aad..cc86af1ad16 100644
--- a/doc/src/sgml/ref/copy.sgml
+++ b/doc/src/sgml/ref/copy.sgml
@@ -1,5 +1,5 @@
@@ -29,7 +29,7 @@ COPY tablename [ ( null string' ]
[ CSV [ QUOTE [ AS ] 'quote' ]
[ ESCAPE [ AS ] 'escape' ]
- [ LITERAL column [, ...] ]
+ [ FORCE NOT NULL column [, ...] ]
COPY tablename [ ( column [, ...] ) ]
TO { 'filename' | STDOUT }
@@ -40,7 +40,7 @@ COPY tablename [ ( null string' ]
[ CSV [ QUOTE [ AS ] 'quote' ]
[ ESCAPE [ AS ] 'escape' ]
- [ FORCE column [, ...] ]
+ [ FORCE QUOTE column [, ...] ]
@@ -185,10 +185,10 @@ COPY tablename [ ( CSV
- Enables Comma Separated Variable (CSV>) mode. (Also called
- Comma Separated Value). It sets the default DELIMITER> to
- comma, and QUOTE> and ESCAPE> values to
- double-quote.
+ Enables Comma Separated Variable (CSV>) mode. (Also
+ called Comma Separated Value). It sets the default
+ DELIMITER> to comma, and QUOTE> and
+ ESCAPE> values to double-quote.
@@ -207,38 +207,33 @@ COPY tablename [ ( escape
- Specifies the character that should appear before a QUOTE>
- data character value in CSV> mode. The default is the
- QUOTE> value (usually double-quote).
+ Specifies the character that should appear before a
+ QUOTE> data character value in CSV> mode.
+ The default is the QUOTE> value (usually double-quote).
- FORCE>
+ FORCE QUOTE>
- In CSV> COPY TO> mode, forces quoting
- to be used for all non-NULL> values in each specified
- column. NULL> output is never quoted.
+ In CSV> COPY TO> mode, forces quoting to be
+ used for all non-NULL> values in each specified column.
+ NULL> output is never quoted.
- LITERAL>
+ FORCE NOT NULL>
- In CSV> COPY FROM> mode, for each column specified,
- do not do a null string> comparison; instead load the value
- literally. QUOTE> and ESCAPE> processing are still
- performed.
-
-
- If the null string> is ''> (the default
- in CSV> mode), a missing input value (delimiter,
- delimiter>), will load as a zero-length string. Delimiter, quote,
- quote, delimiter> is always treated as a zero-length string on input.
+ In CSV> COPY FROM> mode, process each
+ specified column as though it were quoted and hance not a
+ NULL> value. For the default null string> in
+ CSV> mode (''>), this causes a missing
+ values to be input as a zero-length strings.
@@ -483,7 +478,7 @@ COPY tablename [ ( QUOTE> character, and any occurrence
within the value of a QUOTE> character or the
ESCAPE> character is preceded by the escape character.
- You can also use FORCE> to force quotes when outputting
+ You can also use FORCE QUOTE> to force quotes when outputting
non-NULL> values in specific columns.
@@ -496,7 +491,7 @@ COPY tablename [ ( NULL> is
written as an unquoted empty string, while an empty string is
written with double quotes ("">). Reading values follows
- similar rules. You can use LITERAL> to prevent NULL>
+ similar rules. You can use FORCE NOT NULL> to prevent NULL>
input comparisons for specific columns.
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index c41080e1bac..99c0dbd95e8 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1,5 +1,5 @@
@@ -713,8 +713,8 @@ testdb=>
[ null [as] 'string' ]
[ csv [ quote [as] 'character' ]
[ escape [as] 'character' ]
- [ force> column_list ]
- [ literal> column_list ] ]
+ [ force quote> column_list ]
+ [ force not null> column_list ] ]
--
cgit v1.2.3