Re: Writing Result to Disk (psql) - Mailing list pgsql-general

From Jason Earl
Subject Re: Writing Result to Disk (psql)
Date
Msg-id 20010514221616.87683.qmail@web10004.mail.yahoo.com
Whole thread Raw
In response to Writing Result to Disk (psql)  (ryan@paymentalliance.net)
List 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@paymentalliance.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@postgresql.org


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

pgsql-general by date:

Previous
From: Martín Marqués
Date:
Subject: Re: PostgreSQL in Comparison to mySQL
Next
From: Peter Eisentraut
Date:
Subject: Re: Writing Result to Disk (psql)