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

From: "Mahlon E(dot) Smith" <mahlon(at)martini(dot)nu>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: How to capture an interactive psql session in a log file?
Date: 2009-04-03 16:18:08
Message-ID: 20090403161808.GZ71035@martini.nu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Apr 03, 2009, Scott Marlowe wrote:
> On Fri, Apr 3, 2009 at 1:20 AM, A. Kretschmer
> <andreas(dot)kretschmer(at)schollglas(dot)com> wrote:
> > In response to Scott Marlowe :
> >> On Thu, Apr 2, 2009 at 11:55 PM, Gordon Shannon <gordo169(at)gmail(dot)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
> >> > interactive psql session.  Running 8.3.7 with bash shell on Linux.
> >>
> >> Look up the screen command.  It's pretty standard on most unixes.
> >
> > s/screen/script/
>
> Thanks. I was thinking script, honest. I need to get to sleep.

Though you can log with screen in the same fashion as script with
'C-a H'. :)

--
Mahlon E. Smith
http://www.martini.nu/contact.html

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sam Mason 2009-04-03 16:28:47 Re: slow select in big table
Previous Message Komaravolu, Satya 2009-04-03 15:40:17 constraint trigger