Utility psql command for saving query output to a file.

tom-pumford-303984

Photo by Tom Pumford on Unsplash

Ever needed or wanted to save particular query results for later? Perhaps you need to really study something for better understanding. Scrutinize a dataset with a hawk’s eye while having a coffee? Or just list out all of the tables in the database you are working in? The psql \o meta-command is your new best friend.

(more…)

Advertisements