COPY command question

From: Ivano Luberti <luberti(at)archicoop(dot)it>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: COPY command question
Date: 2009-03-17 14:45:50
Message-ID: 49BFB79E.5080107@archicoop.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all, executing the following command inside pgAdmin on my Windows
Vista (please avoid comment, I pray you) :

copy anagrafica_import from 'c:\\temp\\anagraficaANIDIs.csv' WITH CSV

I get the following error:

WARNING: nonstandard use of \\ in a string literal
LINE 1: copy anagrafica_import from 'C:\\temp\\anagraficaANIDIs.csv'...
^
HINT: Use the escape string syntax for backslashes, e.g., E'\\'.
ERROR: could not open file "C:\temp\anagraficaANIDIs.csv" for reading:
No such file or directory

********** Errore **********

ERROR: could not open file "C:\temp\anagraficaANIDIs.csv" for reading:
No such file or directory
Stato SQL: 58P01

The problem is the file C:\temp\anagraficaANIDIs.csv is there and I have
granted reading rights to everyone .
Any suyggestion?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message adam.slachta 2009-03-17 14:55:47 UPDATE of several columns using SELECT statement
Previous Message Tom Lane 2009-03-17 14:39:58 Re: Records Number