标签: linux postgresql postgresql-copy
我在一个带有postgresql DB的GCE实例上,我正在运行以下命令:
COPY (Select * from mytable) TO '/home/myuser/myfile.txt' DELIMITER '#' CSV HEADER;
并收到以下错误:
could not open file "/home/myuser/myfile.txt" for writing: Permission denied
如何解决? (在我的本地机器上,这个命令工作正常)