pgsql: Prevent possible crash reading pg_stat_activity.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Prevent possible crash reading pg_stat_activity.
Дата
Msg-id E1atIxP-0005vc-VU@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Prevent possible crash reading pg_stat_activity.

Also, avoid reading PGPROC's wait_event field twice, once for the wait
event and again for the wait_event_type, because the value might change
in the middle.

Petr Jelinek and Robert Haas

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c4a586c4860477ddae6d4f9cef88486f0e37c37e

Modified Files
--------------
src/backend/utils/adt/pgstatfuncs.c | 33 +++++++++++++++++++++------------
1 file changed, 21 insertions(+), 12 deletions(-)


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Comment improvements for ForeignPath.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: PGDLLIMPORT-ify old_snapshot_threshold.