pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: 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 21:35:45 -0500
Message-ID: <56E22F01.8090106@gmx.net> (raw)
In-Reply-To: <20160311003215.n67y5saowvnghskg@alap3.anarazel.de>
References: <E1ae5kR-0007wV-LY@gemulon.postgresql.org>
	<20160311003215.n67y5saowvnghskg@alap3.anarazel.de>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On 3/10/16 7:32 PM, Andres Freund wrote:
> 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:

Needs a "static", it seems.



-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (33+ messages)  latest in thread

Message-ID: <56E22F01.8090106@gmx.net>
Permalink:  ../56E22F01.8090106@gmx.net/
Also on:    postgresql.org/message-id/56E22F01.8090106@gmx.net

 · 

reply

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: peter_e@gmx.net, andres@anarazel.de, rhaas@postgresql.org
  Subject: Re: pgsql: Provide much better wait information in pg_stat_activity.
  In-Reply-To: <56E22F01.8090106@gmx.net>
  References: <E1ae5kR-0007wV-LY@gemulon.postgresql.org> <20160311003215.n67y5saowvnghskg@alap3.anarazel.de> <56E22F01.8090106@gmx.net>

* 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