Re: piping output to file

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Russ Schneider <russ(at)sugapablo(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: piping output to file
Date: 2004-02-08 17:59:18
Message-ID: 20040208175918.GA5820@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Feb 08, 2004 at 12:28:21PM -0500, Russ Schneider wrote:
> Is there an easy way to pipe a select statement's output to a file?

In psql, type \? and look at what \o and \g do. They both do it but slightly
differently.

--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> (... have gone from d-i being barely usable even by its developers
> anywhere, to being about 20% done. Sweet. And the last 80% usually takes
> 20% of the time, too, right?) -- Anthony Towns, debian-devel-announce

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ed L. 2004-02-08 18:12:27 fsync = true beneficial on ext3?
Previous Message Russ Schneider 2004-02-08 17:28:21 piping output to file