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

2009-04-03 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 script?

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

2009-04-03 Thread Scott Marlowe
On Thu, Apr 2, 2009 at 11:55 PM, Gordon Shannon gordo...@gmail.com 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

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 gordo...@gmail.com 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

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 andreas.kretsch...@schollglas.com wrote: In response to Scott Marlowe : On Thu, Apr 2, 2009 at 11:55 PM, Gordon Shannon gordo...@gmail.com wrote: What I'm trying to do doesn't seem like it should be that difficult or unusual, but I can't seem

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 andreas.kretsch...@schollglas.com wrote: In response to Scott Marlowe : On Thu, Apr 2, 2009 at 11:55 PM, Gordon Shannon gordo...@gmail.com wrote: What I'm trying to do doesn't seem like it should

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's

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

2009-04-02 Thread Gordon Shannon
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 psql session. Running 8.3.7 with bash shell on Linux. If I use

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