| From: | PG Doc comments form <noreply(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-docs(at)lists(dot)postgresql(dot)org |
| Cc: | sfbarbee(at)gmail(dot)com |
| Subject: | HEADER [ boolean ] not allowed in COPY ... FROM statement |
| Date: | 2019-02-22 07:50:03 |
| Message-ID: | 155082180372.1363.9996740407258989599@wrigleys.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-docs |
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/11/sql-copy.html
Description:
> psql --version ;
psql (PostgreSQL) 11.2
> initdb --version ;
initdb (PostgreSQL) 11.2
The boolean parameter is not allowed in the statement:
# COPY table_name FROM '/srv/database/pg_dumps/file.csv' WITH CSV HEADER
true DELIMITER ',' QUOTE '"' ;
ERROR: syntax error at or near "true"
LINE 1: ...pg_dumps/file.csv' WITH CSV HEADER true DELIM...
# COPY table_name FROM '/srv/database/pg_dumps/file.csv' WITH CSV HEADER
'true' DELIMITER ',' QUOTE '"' ;
ERROR: syntax error at or near "'true'"
LINE 1: ...pg_dumps/file.csv' WITH CSV HEADER 'true' DEL...
^
# COPY table_name FROM '/srv/database/pg_dumps/file.csv' WITH CSV HEADER 1
DELIMITER ',' QUOTE '"' ;
ERROR: syntax error at or near "1"
LINE 1: ...pg_dumps/file.csv' WITH CSV HEADER 1 DELIMITE...
# COPY table_name FROM '/srv/database/pg_dumps/file.csv' WITH CSV HEADER
DELIMITER ',' QUOTE '"' ;
COPY 63
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Eugen Konkov | 2019-02-22 09:43:54 | Re: Improve documentation for current_setting function |
| Previous Message | PG Doc comments form | 2019-02-22 07:40:21 | FORMAT keyword not allowed in COPY ... FROM statement |