出力パスはE”でエスケープが必要
<カンマ区切り>
COPY (SELECT * FROM table_name) TO E’C:\\data.csv’ DELIMITER ‘,’;
COPY table_name FROM E’C:\\data.csv’ with csv;
<タブ区切り>
COPY (SELECT * FROM table_name) TO E’C:\\data.csv’ DELIMITER E’\t’;
COPY table_name FROM E’C:\\data.csv’