Sending query to a file - Mailing list pgsql-novice

From Francisco Reyes
Subject Sending query to a file
Date
Msg-id 20011110120650.B36869-100000@zoraida.natserv.net
Whole thread Raw
Responses Re: Sending query to a file
List pgsql-novice
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.



pgsql-novice by date:

Previous
From: Francisco Reyes
Date:
Subject: Different results based on number of records out of same query
Next
From: Tom Lane
Date:
Subject: Re: Different results based on number of records out of same query