pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Humair Mohammed <humairm@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: COPY with FORMAT in Postgresql 9.x
Date: Thu, 2 Dec 2010 15:45:21 -0600
Message-ID: <COL115-W14A2507415BEDD0DE5BB1BA8270@phx.gbl> (raw)



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. 		 	   		  =

view thread (2+ messages)  latest in thread

Message-ID: <COL115-W14A2507415BEDD0DE5BB1BA8270@phx.gbl>
Permalink:  ../COL115-W14A2507415BEDD0DE5BB1BA8270@phx.gbl/
Also on:    postgresql.org/message-id/COL115-W14A2507415BEDD0DE5BB1BA8270@phx.gbl

 · 

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-sql@postgresql.org
  Cc: humairm@hotmail.com
  Subject: Re: COPY with FORMAT in Postgresql 9.x
  In-Reply-To: <COL115-W14A2507415BEDD0DE5BB1BA8270@phx.gbl>

* 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