From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
---|---|
To: | Andrew Taylor <andydtaylor(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: ERROR: relative path not allowed for COPY to file |
Date: | 2013-02-12 17:31:07 |
Message-ID: | 511A7C5B.2050104@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(dot)klaver(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2013-02-12 17:37:24 | Re: ERROR: relative path not allowed for COPY to file |
Previous Message | Andrew Taylor | 2013-02-12 17:19:41 | ERROR: relative path not allowed for COPY to file |