Re: Updating psql for features of new FE/BE protocol - Mailing list pgsql-hackers

From Kevin Brown
Subject Re: Updating psql for features of new FE/BE protocol
Date
Msg-id 20030626002528.GF16911@filer
Whole thread Raw
In response to Re: Updating psql for features of new FE/BE protocol  (nolan@celery.tssi.com)
List pgsql-hackers
nolan@celery.tssi.com wrote:
> > nolan@celery.tssi.com writes:
> > > Is it too late to suggest that there be a way to have output displayed
> > > on screen AND output to a file?  
> > 
> > tee perhaps?
> 
> Tee ALMOST does it.  Try doing a \d while tee'ing the output, for example.

Try using "script" (start it from the shell before invoking psql).
It sounds like it'll do much of what you're after.

"Screen" also has a logging option which may work just as well, if not
better, than "script", and has the additional advantage that the session
will continue (and can be reattached to) even if your terminal window
dies for whatever reason.


-- 
Kevin Brown                          kevin@sysexperts.com


pgsql-hackers by date:

Previous
From: Kevin Brown
Date:
Subject: Re: Updating psql for features of new FE/BE protocol
Next
From: Bruce Momjian
Date:
Subject: Re: RServ patch to support multiple slaves (sorta)