I'm trying to export a table to CSV and force quoting of two columns.
I've tried the following command:
COPY hotel_position_daily TO '/home/ubuntu/export/hotel_position_daily.csv' CSV HEADER FORCE_QUOTE hotelname, city;
which resulted in
ERROR: syntax error at or near "FORCE_QUOTE"
LINE 1: ...buntu/export/hotel_position_daily.csv' CSV HEADER FORCE_QUOT...
and I've tried
COPY hotel_position_daily TO '/home/ubuntu/export/hotel_position_daily.csv' WITH (FORMAT CSV, HEADER, FORCE_QUOTE hotelname, city);
which resulted in
ERROR: argument to option "force_quote" must be a list of column names
what am I doing wrong?