What is the best way to send a query to an ASCII file?
I have been using "\g", but that seems to require doing the query twice. I
do a query and when done I then do '\g <filename>'. It works, but for a
lengthy query it can take very long having to do the query twice.