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

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Gordon Shannon <gordo169(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to capture an interactive psql session in a log file?
Date: 2009-04-03 05:58:26
Message-ID: 20090403055826.GA26557@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gordon Shannon 2009-04-03 06:07:12 Re: How to capture an interactive psql session in a log file?
Previous Message Gordon Shannon 2009-04-03 05:55:10 How to capture an interactive psql session in a log file?