Re: Query result to a file

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Christian Poecher <Poecher(at)gmx(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Query result to a file
Date: 2004-08-11 10:43:12
Message-ID: 1092220992.11679.869.camel@linda
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)lfix(dot)co(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Mester József 2004-08-11 13:18:33 dbf2pg missing
Previous Message Andrew Kelly 2004-08-11 10:22:52 Re: What constitutes a pgsql session?