]> granicus.if.org Git - postgresql/commit
Prevent possible crash reading pg_stat_activity.
authorRobert Haas <rhaas@postgresql.org>
Thu, 21 Apr 2016 18:02:15 +0000 (14:02 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 21 Apr 2016 18:02:15 +0000 (14:02 -0400)
commitc4a586c4860477ddae6d4f9cef88486f0e37c37e
tree7e62ae702d8f468c29c748a27e0d57fd8bee0e00
parent36f69faeff540cd93de0b6aa7c2d2a7781d637a6
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
src/backend/utils/adt/pgstatfuncs.c