Re: spool - Mailing list pgsql-general

From Oliver Elphick
Subject Re: spool
Date
Msg-id 200108210558.f7L5wVma017918@linda.lfix.co.uk
Whole thread Raw
In response to spool  ("Jova" <jclockridge@cablevision.com>)
List pgsql-general
"Jova" wrote:
  >how do spool my results to a file.
  >I know there is a command spool  on and off.  How do I use it?

In psql, use \o.  There is also the command-line option -o.

Check the manpage for psql for full details.

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "For the Lord himself shall descend from heaven with a
      shout, with the voice of the archangel, and with the
      trump of God; and the dead in Christ shall rise first;
      Then we which are alive and remain shall be caught
      up together with them in the clouds, to meet the Lord
      in the air; and so shall we ever be with the Lord."
                          I Thessalonians 4:16,17



pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: not grokking outer joins...
Next
From: "Andrey Y. Mosienko"
Date:
Subject: Re: Sort by foreign date column