Re: help request - Mailing list pgsql-general

From Tom Lane
Subject Re: help request
Date
Msg-id 5356.985707061@sss.pgh.pa.us
Whole thread Raw
In response to help request  ("Hasan Mokhtari" <mokhtari@hadid.sharif.ac.ir>)
List pgsql-general
"Hasan Mokhtari" <mokhtari@hadid.sharif.ac.ir> writes:
>  If I use follawing command instead:
>       " \copy  table1 form /tmp/table1.aa using delimiters '|';
>  psql report follawing error :
>      "extra token after file name "
> what I can do?

Leave out the semicolon (';') at the end.  In general, psql's backslash
commands do not use a terminating semicolon --- they just end at the
end of the line.

Also, if you are using a version before 7.0, you may need to update.
I don't think psql supported "using delimiters" in \copy before 7.0.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Hi
Next
From: Zak McGregor
Date:
Subject: Re: help request