Re: piping output to file - Mailing list pgsql-general

From Reid Thompson
Subject Re: piping output to file
Date
Msg-id 64AE3D5B518E3648ACC823FBCB0B737502767A08@sr002-2kexc.ateb.com
Whole thread Raw
In response to piping output to file  (Russ Schneider <russ@sugapablo.com>)
List pgsql-general
also,

$ psql  -c "select whatever_you_want from table_name" > outfile

reid


> -----Original Message-----
> From: scott.marlowe [mailto:scott.marlowe@ihs.com]
> Sent: Monday, February 09, 2004 12:17 PM
> To: Russ Schneider
> Cc: pgsql-general
> Subject: Re: [GENERAL] piping output to file
>
>
> On Sun, 8 Feb 2004, Russ Schneider wrote:
>
> > Is there an easy way to pipe a select statement's output to a file?
>
> In psql you can use \o [filename] to direct query output to a file.
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to
> majordomo@postgresql.org)
>

pgsql-general by date:

Previous
From: Joe Lester
Date:
Subject: Re: Increasing Max Connections Mac OS 10.3
Next
From: "nednieuws | charles"
Date:
Subject: Re: Where do I find the init-script