On Fri, Feb 15, 2002 at 06:11:08PM +0200,
Peter Peltonen <peter(dot)peltonen(at)fivetec(dot)com> wrote:
>
> A basic question:
>
> How in PostgreSQL do I redirect the output of an SQL query to a textfile?
Assuming you are talking about doing this in psql, the answer is to use:
\o filename
\? will provide help on the other psql \ commands.