Provide much better wait information in pg_stat_activity.

Robert Haas <rhaas@postgresql.org>

Commit: 53be0b1add7064ca5db3cd884302dfc3268d884e
Author: Robert Haas <rhaas@postgresql.org>
Date: 2016-03-10T17:44:09Z
Releases: 9.6.0
Provide much better wait information in pg_stat_activity.

When a process is waiting for a heavyweight lock, we will now indicate
the type of heavyweight lock for which it is waiting.  Also, you can
now see when a process is waiting for a lightweight lock - in which
case we will indicate the individual lock name or the tranche, as
appropriate - or for a buffer pin.

Amit Kapila, Ildus Kurbangaliev, reviewed by me.  Lots of helpful
discussion and suggestions by many others, including Alexander
Korotkov, Vladimir Borodin, and many others.

Files

Documentation touched