Re: ERROR: relative path not allowed for COPY to file

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: ERROR: relative path not allowed for COPY to file
Дата
Msg-id 511A7C5B.2050104@gmail.com
обсуждение исходный текст
Ответ на ERROR: relative path not allowed for COPY to file  (Andrew Taylor <andydtaylor@gmail.com>)
Список pgsql-general
On 02/12/2013 09:19 AM, Andrew Taylor wrote:
> Hi,
>
> I must be being thick - can anyone tell me what I'm doing wrong?
>
> postgres=# COPY post_e_n
> postgres-# TO 'usr/local/psql/csv/post_e_n.csv'
> postgres-# WITH DELIMITER ','
> postgres-# CSV HEADER;
> ERROR:  relative path not allowed for COPY to file
>
> COPY (SELECT * FROM post_e_n) gave me the same error.
>
> I did chmod 755 -R psql to make sure the directory could be written to.
> Is this to do with the underscores? There is no csv file pre-existing in
> the directory.

'usr/local/psql/csv/post_e_n.csv'

should be

'/usr/local/psql/csv/post_e_n.csv'
>
> Thanks,
>
>
> Andy


--
Adrian Klaver
adrian.klaver@gmail.com

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

Предыдущее
От: Andrew Taylor
Дата:
Сообщение: ERROR: relative path not allowed for COPY to file
Следующее
От: Kevin Grittner
Дата:
Сообщение: Re: ERROR: relative path not allowed for COPY to file