Re: Help with copy (loading TSV file into table as text) - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Help with copy (loading TSV file into table as text)
Date
Msg-id D960CB61B694CF459DCFB4B0128514C2070C37B8@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Help with copy (loading TSV file into table as text)  (Allan Kamau <kamauallan@gmail.com>)
List pgsql-general
Allan Kamau wrote:
> #COPY a.t(raw_data)FROM '/data/tmp/t.txt' WITH FORMAT text;
>
> yields "ERROR:  syntax error at or near "FORMAT"

You'll have to use the syntax as documented:

COPY ... FROM ... WITH (FORMAT 'text');

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Michael Graham
Date:
Subject: unnest and string_to_array on two columns
Next
From: Mark Cave-Ayland
Date:
Subject: Re: PostGIS in a commercial project