HEADER [ boolean ] not allowed in COPY ... FROM statement

PG Doc comments form <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.documentation
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.