Re: Queries to Export - Mailing list pgsql-novice

From Chandra Sekhar Surapaneni
Subject Re: Queries to Export
Date
Msg-id 0F7F9A82BB0DBB4396A9F8386D0E0612ACCFB8@pos-exch1.corp.positivenetworks.net
Whole thread Raw
In response to Queries to Export  ("Warren Murray" <murray_warren@bah.com>)
Responses Re: Queries to Export
List pgsql-novice
"\o filename";
"select your_query_goes_here;"
"\o"

This should do the trick. Basically \o will start writing the results to
the file.
"\?" will give you help for such psql commands.

Regards
Chandra Sekhar Surapaneni

-----Original Message-----
From: pgsql-novice-owner@postgresql.org
[mailto:pgsql-novice-owner@postgresql.org] On Behalf Of Warren Murray
Sent: Thursday, February 16, 2006 4:42 PM
To: pgsql-novice@postgresql.org
Subject: [NOVICE] Queries to Export

I need to export the results of several union and join queries from a
PostgreSQL database tables into text files.  How is that done since the
results is not in a table?

Warren

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match



pgsql-novice by date:

Previous
From: "Warren Murray"
Date:
Subject: Queries to Export
Next
From:
Date:
Subject: Re: Version 8.1