Export PostgreSQL database table header and data to CSV file
Export PostgreSQL table to csv with header for some columns
Full table backup to csv with header
copy from query