| From: | "Thalis A(dot) Kalfigopoulos" <thalis(at)cs(dot)pitt(dot)edu> |
|---|---|
| To: | Peter Peltonen <peter(dot)peltonen(at)fivetec(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Redirecting query's output to a textfile? |
| Date: | 2002-02-15 16:43:33 |
| Message-ID: | Pine.LNX.4.21.0202151141410.11314-100000@aluminum.cs.pitt.edu |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Depends on how you place the query? I assume you are asking about the psql client, so before the query just do:
\o output.txt
you can see several options/switches by giving \?
regards,
thalis
On Fri, 15 Feb 2002, Peter Peltonen wrote:
>
> A basic question:
>
> How in PostgreSQL do I redirect the output of an SQL query to a textfile?
>
> --
> Peter Peltonen
> System Administrator
> Fivetec Solutions Oy
>
> Melkonkatu 28 E
> 00210 Helsinki
> GSM. +358-40 720 6535
> Tel. +358-9-6824 7666
> Fax. +358-9-6824 7664
> http://www.fivetec.com
> mailto:peter(dot)peltonen(at)fivetec(dot)com
> --
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kaare Rasmussen | 2002-02-15 16:44:24 | Re: Report generation |
| Previous Message | Lincoln Yeoh | 2002-02-15 16:33:41 | Re: Pg.so problem |