From: Andres Freund <andres@anarazel.de>
To: Robert Haas <rhaas@postgresql.org>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Provide much better wait information in pg_stat_activity.
Date: Thu, 10 Mar 2016 16:32:15 -0800
Message-ID: <20160311003215.n67y5saowvnghskg@alap3.anarazel.de> (raw)
In-Reply-To: <E1ae5kR-0007wV-LY@gemulon.postgresql.org>
References: <E1ae5kR-0007wV-LY@gemulon.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
On 2016-03-10 18:55:47 +0000, Robert Haas wrote:
> 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.
My compiler quite validly complains:
/home/andres/src/postgresql/src/backend/storage/lmgr/lmgr.c: In function ‘GetLockNameFromTagType’:
/home/andres/src/postgresql/src/backend/storage/lmgr/lmgr.c:1018:9: warning: function may return address of local variable [-Wreturn-local-addr]
return locktypename;
^
/home/andres/src/postgresql/src/backend/storage/lmgr/lmgr.c:1007:8: note: declared here
char tnbuf[32];
^
In file included from /home/andres/src/postgresql/src/backend/commands/dbcommands.c:20:0:
Andres
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de, rhaas@postgresql.org
Subject: Re: pgsql: Provide much better wait information in pg_stat_activity.
In-Reply-To: <20160311003215.n67y5saowvnghskg@alap3.anarazel.de>
References: <E1ae5kR-0007wV-LY@gemulon.postgresql.org> <20160311003215.n67y5saowvnghskg@alap3.anarazel.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox