Re: [GENERAL] How to capture an interactive psql session in a log file?

2009-04-03 Thread Erik Jones
On Apr 2, 2009, at 11:07 PM, Gordon Shannon wrote: That does the trick, awesome! I do think it would be great if psql had a "stderr" capture in addition to stdout. While the recommendations to use script are perfect for the use case of capturing everything, including input, I think it'

Re: [GENERAL] How to capture an interactive psql session in a log file?

2009-04-03 Thread Mahlon E. Smith
On Fri, Apr 03, 2009, Scott Marlowe wrote: > On Fri, Apr 3, 2009 at 1:20 AM, A. Kretschmer > wrote: > > In response to Scott Marlowe : > >> On Thu, Apr 2, 2009 at 11:55 PM, Gordon Shannon wrote: > >> > > >> > What I'm trying to do doesn't seem like it should be that difficult or > >> > unusual, b

Re: [GENERAL] How to capture an interactive psql session in a log file?

2009-04-03 Thread Scott Marlowe
On Fri, Apr 3, 2009 at 1:20 AM, A. Kretschmer wrote: > In response to Scott Marlowe : >> On Thu, Apr 2, 2009 at 11:55 PM, Gordon Shannon wrote: >> > >> > What I'm trying to do doesn't seem like it should be that difficult or >> > unusual, but I can't seem to find the right combination of commands

Re: [GENERAL] How to capture an interactive psql session in a log file?

2009-04-03 Thread A. Kretschmer
In response to Scott Marlowe : > On Thu, Apr 2, 2009 at 11:55 PM, Gordon Shannon wrote: > > > > What I'm trying to do doesn't seem like it should be that difficult or > > unusual, but I can't seem to find the right combination of commands to make > > it happen.  I want to have a log file that capt

Re: [GENERAL] How to capture an interactive psql session in a log file?

2009-04-02 Thread Scott Marlowe
On Thu, Apr 2, 2009 at 11:55 PM, Gordon Shannon wrote: > > What I'm trying to do doesn't seem like it should be that difficult or > unusual, but I can't seem to find the right combination of commands to make > it happen.  I want to have a log file that captures everything from an > interactive psq

Re: [GENERAL] How to capture an interactive psql session in a log file?

2009-04-02 Thread Gordon Shannon
That does the trick, awesome! I do think it would be great if psql had a "stderr" capture in addition to stdout. Thanks hubert depesz lubaczewski-2 wrote: > > On Thu, Apr 02, 2009 at 10:55:10PM -0700, Gordon Shannon wrote: >> Has anyone solved this issue before? > > have you seen program "sc

Re: [GENERAL] How to capture an interactive psql session in a log file?

2009-04-02 Thread hubert depesz lubaczewski
On Thu, Apr 02, 2009 at 10:55:10PM -0700, Gordon Shannon wrote: > Has anyone solved this issue before? have you seen program "script"? usage: just run script you will get shell. now run your command you want to capture everything from - it will work as usual. after you finish - exit the "script-