Other postgres dump query to file January 27, 2017 jdboyd \copy (select fields from table where something=otherthing) to '/tmp/test.csv' with HEADER CSV; Share this:ShareClick to share on Pocket (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Tumblr (Opens in new window)Click to share on Pinterest (Opens in new window)Click to print (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Reddit (Opens in new window) Related