psql's \copy runs on the client side and writes the CSV to the local filesystem, unlike COPY, which writes on the server. CSV mode handles quoting and HEADER emits a header row. A quick way to hand data to a spreadsheet.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.