可以在复制命令中使用单引号导出数据:
COPY mytest TO '/tmp/test.csv' DELIMITER ',' CSV HEADER;
COPY 5
带双引号:
COPY mytest TO "/tmp/test.csv" DELIMITER ',' CSV HEADER;
ERROR: syntax error at or near ""/tmp/test.csv""
LINE 1: COPY mytest TO "/tmp/test.csv" DELIMITER ',' CSV HEADER;
限制使用双引号是一种奇怪的语法!