Re: Writing Result to Disk (psql)

From: Jason Earl <jdearl(at)yahoo(dot)com>
To: ryan(at)paymentalliance(dot)net, pgsql-general(at)postgresql(dot)org
Subject: Re: Writing Result to Disk (psql)
Date: 2001-05-14 22:16:16
Message-ID: 20010514221616.87683.qmail@web10004.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yes it is. Check out the \o option. For example:

processdata=> \o foobar
processdata=> select * from maintent;

Will put the output from the query "select * from
maintent" into the file foobar. You might also find
the \f and \t options to be useful. Try typing in \?
at the psql prompt for more information.

--- ryan(at)paymentalliance(dot)net wrote:
> Is it possible to write the result of a SELECT
> statement to disk from
> psql?
>
> Thanks!
>
> -r
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to
majordomo(at)postgresql(dot)org

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tamsin 2001-05-14 22:20:39 RE: Writing Result to Disk (psql)
Previous Message Joseph Shraibman 2001-05-14 22:09:11 Re: Re: How to create a trigger