psql – save results of command to a file

I’m using psql’s \dt to list all tables in a database and I need to save the results.

What is the syntax to export the results of a psql command to a file?

10 Answers
10

Leave a Comment