ERROR: relative path not allowed for COPY to file - Mailing list pgsql-general

From Andrew Taylor
Subject ERROR: relative path not allowed for COPY to file
Date
Msg-id CAFAE3JxDj41-GM0_kMmdwp1AjE282jBGqZqudhp74+O9XDuPkg@mail.gmail.com
Whole thread Raw
Responses Re: ERROR: relative path not allowed for COPY to file  (Adrian Klaver <adrian.klaver@gmail.com>)
Re: ERROR: relative path not allowed for COPY to file  (Kevin Grittner <kgrittn@ymail.com>)
List pgsql-general
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.

Thanks,


Andy

pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Changing Character Sets
Next
From: Adrian Klaver
Date:
Subject: Re: ERROR: relative path not allowed for COPY to file