track_activities is mostly broken

Поиск
Список
Период
Сортировка
От Tom Lane
Тема track_activities is mostly broken
Дата
Msg-id 15861.1365004802@sss.pgh.pa.us
обсуждение исходный текст
Список pgsql-hackers
The point of turning off pgstat_track_activities is, IMO, to eliminate
the overhead of updating one's PgBackendStatus entry in main memory.
Commit 4f42b546 broke this, however, because it confused getting into
the "reporting disabled" state with what should happen once already
in the state.  If you try turning off track_activities in a backend,
you'll find that you can't see its current query any more, but that's
not because it's not reporting it --- it's only because
pg_stat_get_activity() is hiding it from you.  The overhead is still
being paid, as you can confirm by noting that query_start and
state_change continue to update whenever the backend does something.

Will fix.
        regards, tom lane



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: CREATE EXTENSION BLOCKS