I'm using a Postgre database for work. I have this script that I made which basically returns over 500K rows with multiple columns. Daily, I would run this and save the results to a CSV file. Is there a syntax/script that can automate the exporting to CSV task?
Thanks!