Thread: pgsql: Prevent possible crash reading pg_stat_activity.

pgsql: Prevent possible crash reading pg_stat_activity.

From
Robert Haas
Date:
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(-)