Skip site navigation (1) Skip section navigation (2)

Re: COPY command syntax error

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pdxpug(at)postgresql(dot)org
Subject: Re: COPY command syntax error
Date: 2011-02-02 19:35:56
Message-ID: (view raw or whole thread)
Lists: pdxpug
On Wed, 2 Feb 2011, gabrielle wrote:

> That syntax (COPY table FROM '/path/to/file' WITH DELIMITER AS ':'
> CSV;) works for me in a similar test.


   Worked for me, too, a couple of days ago when I first created the database
and table.

> Are you sure the file exists?  Try taking off the "with ... csv" piece
> and see if you get the same error.

   Yes it exists:

ll import.csv 
-rw-r--r-- 1 rshepard users 227399 2011-02-02 10:45 import.csv

   And the psql result:

jerrittwq=# copy monitor from
ERROR:  could not open file
for reading: No such file or directory



In response to


pdxpug by date

Next:From: Darrell FuhrimanDate: 2011-02-02 19:35:58
Subject: Re: COPY command syntax error
Previous:From: Rich ShepardDate: 2011-02-02 19:31:41
Subject: Re: COPY command syntax error

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group