Re: \copy command error - Mailing list pgsql-general

From Sam Mason
Subject Re: \copy command error
Date
Msg-id 20090803184925.GC5407@samason.me.uk
Whole thread Raw
In response to Re: \copy command error  (erobles <erobles@sensacd.com.mx>)
List pgsql-general
On Mon, Aug 03, 2009 at 01:18:06PM -0500, erobles wrote:
> Maybe the error is \c   because '\c'   is used to connect  to another
> database.
> try   the same line without '\'  only  :
> copy gisp from d:/projects/gisp/gisp.csv'   delimiters  ',';

\copy is a special command in psql that does a copy from the system that
psql is running in, rather than a normal COPY command that runs on the
server.

I believe \copy is implemented as a COPY FROM STDIN... with psql
automatically piping the data over the connection for you.

--
  Sam  http://samason.me.uk/

pgsql-general by date:

Previous
From: Nathan Jahnke
Date:
Subject: Privilege problems: access denied on select for owner?
Next
From: Sam Mason
Date:
Subject: Re: Privilege problems: access denied on select for owner?