Re: How to determine which long running session??? - Mailing list pgsql-cygwin

From Henshall, Stuart - Design & Print
Subject Re: How to determine which long running session???
Date
Msg-id E382B5D8EDE1D6118DBE0008C759BCD6116B39@WCPEXCHANGE
Whole thread Raw
In response to How to determine which long running session???  ("King_Henree@yahoo.com" <king_henree@yahoo.com>)
List pgsql-cygwin

King_Henree@yahoo.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

pgsql-cygwin by date:

Previous
From: "King_Henree@yahoo.com"
Date:
Subject: How to determine which long running session???
Next
From: "King_Henree@yahoo.com"
Date:
Subject: PostgeSQL equivalent to Oracle RAW column type???