Re: getting the current query from pg_stat_activity

Поиск
Список
Период
Сортировка
От David Johnston
Тема Re: getting the current query from pg_stat_activity
Дата
Msg-id 1396295530061-5798098.post@n5.nabble.com
обсуждение исходный текст
Ответ на getting the current query from pg_stat_activity  (Si Chen <sichen@opensourcestrategies.com>)
Ответы Re: getting the current query from pg_stat_activity  (Si Chen <sichen@opensourcestrategies.com>)
Список pgsql-general
Si Chen-2 wrote
> I have two different postgresql servers running slightly [different]
> versions.

Versions 9.0 and 9.2 are NOT slightly different.  These are two MAJOR
RELEASES (which allow for API changes) apart (i.e., one major release in
between - 9.1)

The release notes for 9.2 note this particular change explicitly:

http://www.postgresql.org/docs/9.2/interactive/release-9-2.html

Section E.9.2.6

Note the presence of the "state" column in the 9.2 schema - you use this to
determine if a connection is "idle" instead of looking for "<IDLE>" in a
query column which then allows the query column to be report the "last known
query" at all times.

David J.






--
View this message in context:
http://postgresql.1045698.n5.nabble.com/getting-the-current-query-from-pg-stat-activity-tp5798076p5798098.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Getting sequence-generated IDs from multiple row insert
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Why does "checkpointer" is consumig ~1.2Gb of RAM?