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

From: Gordon Shannon <gordo169(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to capture an interactive psql session in a log file?
Date: 2009-04-03 06:07:12
Message-ID: 22862519.post@talk.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


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"?
>
> 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-shell", and check the generated
> typescript file
>
> Best regards,
>
> depesz
>
> --
> Linkedin: http://www.linkedin.com/in/depesz / blog:
> http://www.depesz.com/
> jid/gtalk: depesz(at)depesz(dot)com / aim:depeszhdl / skype:depesz_hdl /
> gg:6749007
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
>

--
View this message in context: http://www.nabble.com/How-to-capture-an-interactive-psql-session-in-a-log-file--tp22862412p22862519.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-04-03 06:54:31 Re: How to capture an interactive psql session in a log file?
Previous Message hubert depesz lubaczewski 2009-04-03 05:58:26 Re: How to capture an interactive psql session in a log file?