Search Postgresql Archives

ERROR: relative path not allowed for COPY to file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux