COPY with FORMAT in Postgresql 9.x - Mailing list pgsql-sql

From Humair Mohammed
Subject COPY with FORMAT in Postgresql 9.x
Date
Msg-id COL115-W14A2507415BEDD0DE5BB1BA8270@phx.gbl
Whole thread Raw
Responses Re: COPY with FORMAT in Postgresql 9.x
List pgsql-sql

Postgres 9.x provies the COPY command with new syntax with a new option called FORMAT


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.

pgsql-sql by date:

Previous
From: Dimitri
Date:
Subject: Calculate next event date based on instance of the day of week
Next
From: Jayadevan M
Date:
Subject: Re: Calculate next event date based on instance of the day of week