Sending query to a file

From: Francisco Reyes <lists(at)natserv(dot)com>
To: Pgsql Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Sending query to a file
Date: 2001-11-10 17:17:23
Message-ID: 20011110120650.B36869-100000@zoraida.natserv.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Francisco Reyes 2001-11-10 18:23:37 Re: Different results based on number of records out of
Previous Message Tom Lane 2001-11-10 17:16:10 Re: Different results based on number of records out of same query