pgsql: Prevent possible crash reading pg_stat_activity. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Prevent possible crash reading pg_stat_activity.
Date
Msg-id E1atIxP-0005vc-VU@gemulon.postgresql.org
Whole thread Raw
List 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 by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Comment improvements for ForeignPath.
Next
From: Tom Lane
Date:
Subject: pgsql: PGDLLIMPORT-ify old_snapshot_threshold.