Thread: spool

spool

From
"Jova"
Date:
how do spool my results to a file.
I know there is a command spool  on and off.  How do I use it?




Re: spool

From
"Oliver Elphick"
Date:
"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