What is the easiest way to save PL/pgSQL output from a PostgreSQL database to a CSV file?
I\'m using PostgreSQL 8.4 with pgAdmin III and PSQL plugin where I run que
I'd highly recommend DataGrip, a database IDE by JetBrains. You can export a SQL query to a CSV file, and can set up ssh tunneling with ease. When the documentation refers to "result set", they mean the result returned by a SQL query in the console.
I'm not associated with DataGrip, I just love the product!