Save PSQL query output to CSV file in Greenplum