Rob Sargent <robjsargent(at)gmail(dot)com> writes:> Keep in mind there is a quick write-to-file in psql with ‘\o <filename>’. And don’t forget to turn it off with ‘\o’
See also "\g filename", for one-shot output.
regards, tom lane