pgsql: Prevent possible crash reading pg_stat_activity.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Prevent possible crash reading pg_stat_activity.
Date: 2016-04-21 18:04:03
Message-ID: E1atIxP-0005vc-VU@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-04-21 18:20:42 pgsql: Fix ruleutils.c's dumping of ScalarArrayOpExpr containing an EXP
Previous Message Kevin Grittner 2016-04-21 17:53:12 Re: [COMMITTERS] pgsql: Inline initial comparisons in TestForOldSnapshot()