Listing all open sessions/connections/XAs ?

Поиск
Список
Период
Сортировка
От
Тема Listing all open sessions/connections/XAs ?
Дата
Msg-id 20040616193851.95910.qmail@web12704.mail.yahoo.com
обсуждение исходный текст
Ответы Re: Listing all open sessions/connections/XAs ?  (<ogjunk-pgjedan@yahoo.com>)
Список pgsql-admin
Hello,

Occasionally I see that my (web) app leaves some DB connections open,
so they look like this to `ps':

  postgres: username dbname 127.0.0.1 idle in transaction

This results in my DB connection pool getting exhausted every so often.
I need to track the source of this problem.

Is there a way to see the SQL (or any other information) associated
with a connection/session/transaction that caused my DB connection to
remain open?

I know MS SQL Server has something like that, and so does Oracle, but I
haven't seen this mentioned in the PostgreSQL Admin Guide.

I have PG 7.3.4.

Thanks,
Otis


В списке pgsql-admin по дате отправления:

Предыдущее
От: Jeff Keller
Дата:
Сообщение: Capacity Planning
Следующее
От: "David F. Skoll"
Дата:
Сообщение: Re: [Support i5GKDLjR008723] PGRES_FATAL_ERROR: out of free buffers: