Re: import CSV file

Поиск
Список
Период
Сортировка
От T E Schmitz
Тема Re: import CSV file
Дата
Msg-id 45F7385B.7090901@numerixtechnology.de
обсуждение исходный текст
Ответ на Re: import CSV file  (Jure Kodzoman <jure@plsavez.hr>)
Список pgsql-sql
Jure Kodzoman wrote:
> On Tue, 2007-03-13 at 20:38 +0000, T E Schmitz wrote:
> 
>>I am trying to batch-load a tab-separated CSV file:
>>
>>psql -h lolek  -U tes -d stockmarket -c "copy history from 
>>'/tmp/FTSE.csv' CSV";
>>
>>ERROR:  could not open file "/tmp/FTSE.csv" for reading: No such file or 
>>directory
>>
>>The file exists. Do I need to escape the quotes?
>>
> 
> 
> Try setting the permissions chmod a+r /tmp/FTSE.csv
> 

The problem was indeed that COPY was expecting the file on the server.

-- 


Regards,

Tarlika Elisabeth Schmitz


В списке pgsql-sql по дате отправления:

Предыдущее
От: T E Schmitz
Дата:
Сообщение: Re: import CSV file
Следующее
От: T E Schmitz
Дата:
Сообщение: Re: import CSV file