Re: Absent output from psql - Mailing list pgsql-general

From Tom Lane
Subject Re: Absent output from psql
Date
Msg-id 9955.1267376840@sss.pgh.pa.us
Whole thread Raw
In response to Absent output from psql  (John Gage <jsmgage@gmail.com>)
List pgsql-general
John Gage <jsmgage@gmail.com> writes:
> 1) EFN=# \o aatest01.txt \i ./TestQuery01.txt
> 2) EFN=# \i ./TestQuery01.txt

> After I execute line 1), the results of the two queries contained in the
> TestQuery01.txt file can be found in aatest01.txt.  Good.  Excellent.
> However, line 2) results in no output to any place I can discover.

Doesn't it get appended to aatest01.txt?  My recollection is that \o's
effects persist till you reset it.  But it only affects query output,
not interactive commands like \p.

            regards, tom lane

pgsql-general by date:

Previous
From: Nilesh Govindarajan
Date:
Subject: Re: Absent output from psql
Next
From: rihad
Date:
Subject: Re: Partial foreign keys