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

Поиск
Список
Период
Сортировка
От Henshall, Stuart - Design & Print
Тема Re: How to determine which long running session???
Дата
Msg-id E382B5D8EDE1D6118DBE0008C759BCD6116B39@WCPEXCHANGE
обсуждение исходный текст
Ответ на How to determine which long running session???  ("King_Henree@yahoo.com" <king_henree@yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: "King_Henree@yahoo.com"
Дата:
Сообщение: How to determine which long running session???
Следующее
От: "King_Henree@yahoo.com"
Дата:
Сообщение: PostgeSQL equivalent to Oracle RAW column type???