buithehoa
9/22/2015 - 9:36 AM

Save PostgreSQL output to CSV

Save PostgreSQL output to CSV

COPY (SELECT * FROM foo) T0 '/tmp/foo.csv' WITH CSV;