Re: Query result to a file - Mailing list pgsql-novice

From Oliver Elphick
Subject Re: Query result to a file
Date
Msg-id 1092220992.11679.869.camel@linda
Whole thread Raw
In response to Re: Query result to a file  (Christian Poecher <Poecher@gmx.net>)
List pgsql-novice
On Tue, 2004-08-10 at 22:33, Christian Poecher wrote:
> Eduardo Vázquez Rodríguez wrote:
> > Someone suggested in this list that I redirect the output of the query
> > using the "query" > file, but my intention is that the new file must be
> > on the client side.
>
> Actually Oliver used a client side approach. postmaster is the usual
> server process and psql one possible client. psql -h HOSTNAME starts the
> client process, if you are remote.

Yes.  However I confused things by saying that the path specified by \o
needed to be writable by the backend.  That is rubbish, of course, since
\o is executed by psql, not the backend.

--
Oliver Elphick                                          olly@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
                 ========================================
     "Be still before the LORD and wait patiently for him;
      do not fret when men succeed in their ways, when they
      carry out their wicked schemes."
                            Psalms 37:7


pgsql-novice by date:

Previous
From: Andrew Kelly
Date:
Subject: Re: What constitutes a pgsql session?
Next
From: Mester József
Date:
Subject: dbf2pg missing