Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group