Re: pgsql: Provide much better wait information in pg_stat_activity.

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Andres Freund <andres(at)anarazel(dot)de>, Robert Haas <rhaas(at)postgresql(dot)org>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Provide much better wait information in pg_stat_activity.
Date: 2016-03-11 02:35:45
Message-ID: 56E22F01.8090106@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

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.

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2016-03-11 02:36:11 Re: pgsql: Checkpoint sorting and balancing.
Previous Message Andres Freund 2016-03-11 01:52:47 Re: pgsql: Checkpoint sorting and balancing.

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2016-03-11 02:36:14 Re: [COMMITTERS] pgsql: Provide much better wait information in pg_stat_activity.
Previous Message Peter Eisentraut 2016-03-11 02:20:16 Re: Relaxing SSL key permission checks