Save PL/pgSQL output from PostgreSQL to a CSV file
Asked 07 September, 2021
Viewed 1.2K times
  • 61
Votes

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 queries from.

17 Answer