SyntaxFix
Write A Post
Hire A Developer
Questions
The correct script for postgres (Ubuntu) is:
COPY (SELECT * FROM tbl) TO '/var/lib/postgres/myfile1.csv';