pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: petr.lancaric@seznam.cz
To: pgsql-docs@postgresql.org
Subject: Wrong COPY command synopsis
Date: Wed, 27 Sep 2017 11:01:41 +0000
Message-ID: <20170927110141.28561.23998@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.1/static/sql-copy.html
Description:

Postgres psql (PostgreSQL) 9.5.4

Wrong COPY command synopsis:

1. comma is not an options separator { ...( option [, ...]  ... }
2. FORMAT is not a kewyword {... FORMAT format_name ... }


Following two commands should be valid after synopsis, but they are not: 

gis=# COPY gis_entity FROM &#39;/tmp/podl_db_city.csv&#39; DELIMITER &#39;,&#39;, FORMAT
csv;
ERROR:  syntax error at or near &quot;,&quot;
LINE 1: ..._entity FROM &#39;/tmp/podl_db_city.csv&#39; DELIMITER &#39;,&#39;, FORMAT c...
                  
                                           ^
gis=# COPY gis_entity FROM &#39;/tmp/podl_db_city.csv&#39; DELIMITER &#39;,&#39; FORMAT
csv;
ERROR:  syntax error at or near &quot;FORMAT&quot;
LINE 1: ...entity FROM &#39;/tmp/podl_db_city.csv&#39; DELIMITER &#39;,&#39; FORMAT csv...
                                                             ^





-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs


view thread (3+ messages)  latest in thread

Message-ID: <20170927110141.28561.23998@wrigleys.postgresql.org>
Permalink:  ../20170927110141.28561.23998@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20170927110141.28561.23998@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: petr.lancaric@seznam.cz
  Subject: Re: Wrong COPY command synopsis
  In-Reply-To: <20170927110141.28561.23998@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox