Random Postgres hints 

$ hint postgres
postgres psql csv:
COPY ( query ) TO STDOUT WITH CSV HEADER;