Re: Redirecting query's output to a textfile? - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Redirecting query's output to a textfile?
Date
Msg-id 20020215165925.GA2025@wolff.to
Whole thread Raw
In response to Redirecting query's output to a textfile?  (Peter Peltonen <peter.peltonen@fivetec.com>)
List pgsql-general
On Fri, Feb 15, 2002 at 06:11:08PM +0200,
  Peter Peltonen <peter.peltonen@fivetec.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.

pgsql-general by date:

Previous
From: Kaare Rasmussen
Date:
Subject: Re: Report generation
Next
From: Doug McNaught
Date:
Subject: Re: Any troubleshooting techniques