Re: How to determine which long running session???

From: "Henshall, Stuart - Design & Print" <SHenshall(at)westcountry-design-print(dot)co(dot)uk>
To: "'King_Henree(at)yahoo(dot)com'" <king_henree(at)yahoo(dot)com>, pgsql-cygwin(at)postgresql(dot)org
Subject: Re: How to determine which long running session???
Date: 2002-12-18 09:17:34
Message-ID: E382B5D8EDE1D6118DBE0008C759BCD6116B39@WCPEXCHANGE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

King_Henree(at)yahoo(dot)com wrote:
> In Oracle you can look at the v$session view to get
> session information and how long they have been
> running. What is the equivalent in PostgreSQL?
>
> TIA.
>

I enable logging of the logins +date/time +pid in postgresql.conf
log_connections=true
log_timestamp=true
log_pid=true
I then just grep the postmaster log for the pid & look at the last entry
There may well be another method, but hth
- Stuart

Browse pgsql-cygwin by date

  From Date Subject
Next Message King_Henree@yahoo.com 2002-12-18 17:18:56 PostgeSQL equivalent to Oracle RAW column type???
Previous Message King_Henree@yahoo.com 2002-12-17 20:05:29 How to determine which long running session???