From: Tom Lane <tgl@sss.pgh.pa.us>
To: Humair Mohammed <humairm@hotmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: COPY with FORMAT in Postgresql 9.x
Date: Fri, 03 Dec 2010 10:51:50 -0500
Message-ID: <26320.1291391510@sss.pgh.pa.us> (raw)
In-Reply-To: <COL115-W14A2507415BEDD0DE5BB1BA8270@phx.gbl>
References: <COL115-W14A2507415BEDD0DE5BB1BA8270@phx.gbl>
Humair Mohammed <humairm@hotmail.com> writes:
> Postgres 9.x provies the COPY command with new syntax with a new option called FORMAT
> http://www.postgresql.org/docs/current/static/sql-copy.html
> However when I run the following command:
> COPY dQstn FROM 'c:/bcp/postgres/dQstn.csv' WITH FORMAT csv;
> I get the following error message:
> ERROR: syntax error at or near "FORMAT"
> If I use the 8.x syntax without the FORMAT option it works fine.
This is expected: you have to use the new syntax (with parens) for
any of the new options.
regards, tom lane
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, humairm@hotmail.com
Subject: Re: COPY with FORMAT in Postgresql 9.x
In-Reply-To: <26320.1291391510@sss.pgh.pa.us>
* 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