Re: export a select result in a file ? - Mailing list pgsql-general

From A. Kretschmer
Subject Re: export a select result in a file ?
Date
Msg-id 20051004150009.GA30679@webserv.wug-glas.de
Whole thread Raw
In response to export a select result in a file ?  ("ctobini" <ctemp2@free.fr>)
List pgsql-general
am  04.10.2005, um  5:00:16 -0700 mailte ctobini folgendes:
> Hello,
>
> I don't find in the PostgreSQL doc how to export a select result in a
> text file.
>
> Thanks if you can help me.

You can use \o in psql to redirect the result to a file.

\o out.file


Regards, Andreas
--
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47212,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    ===

pgsql-general by date:

Previous
From: "Sebastian Iglesias"
Date:
Subject: SQLService on Win XP
Next
From: Tom Lane
Date:
Subject: Re: Avoiding evaluating functions twice.