Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aeCvw-0008WA-Nt for pgsql-committers@arkaria.postgresql.org; Fri, 11 Mar 2016 02:36:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aeCvv-0008Sv-MR for pgsql-committers@arkaria.postgresql.org; Fri, 11 Mar 2016 02:36:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aeCvi-0008FE-UO for pgsql-committers@postgresql.org; Fri, 11 Mar 2016 02:35:54 +0000 Received: from mout.gmx.net ([212.227.15.18]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1aeCve-0004fQ-3d for pgsql-committers@postgresql.org; Fri, 11 Mar 2016 02:35:54 +0000 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MTBsk-1aEO5V1oRS-00SAyh for ; Fri, 11 Mar 2016 03:35:47 +0100 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 38FD5203AF for ; Thu, 10 Mar 2016 21:35:46 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Thu, 10 Mar 2016 21:35:46 -0500 X-Sasl-enc: oOpj8doJzzL9FW00L3nSBz6atWdgt3uYtTeSXdcXUndY 1457663746 Received: from [10.0.0.4] (c-73-13-69-21.hsd1.pa.comcast.net [73.13.69.21]) by mail.messagingengine.com (Postfix) with ESMTPA id EDA45C0001A; Thu, 10 Mar 2016 21:35:45 -0500 (EST) Subject: Re: pgsql: Provide much better wait information in pg_stat_activity. To: Andres Freund , Robert Haas References: <20160311003215.n67y5saowvnghskg@alap3.anarazel.de> Cc: pgsql-committers@postgresql.org From: Peter Eisentraut Message-ID: <56E22F01.8090106@gmx.net> Date: Thu, 10 Mar 2016 21:35:45 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160311003215.n67y5saowvnghskg@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:mVUeOykM9kUmuSZvdkOAOpfK9klrSXAQSRvjYB0/Hcy4Q46HkE+ k4/+vDfage5t5J9b3FwyRdnsJNkz/IwytYTIvBfZFw8I/957CZOkOLoJd9aKPcZqNrBC6XV IhCFTxaFgr9cwwl1V2XjJhaQFYIwPUR/hwet2aUjzoeTVxis5ELTnRBX0pFBf0AD99iBhAN olI6syopfQwIY0TjbQxiQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:X5jqpQ6qPKs=:1yk1F+lDuHMnn3YrdzsKR9 A52qKe2rGL6R9lw1xpRc0jlGeBA6vJTUUC3CfJMUNKovyoiVW6X21SX6AnvGu7mAxOL1t328y kF3t0nR8ORQ9dLW3+uwXn2nEG1JeH0CfGeu5cHHpqHp6KrKboRJIXKfJ5UEwc9rsGHB1PC9jO JJyWeGGl3t6zL0Ma4lfKJZ5we9B9i9eKIiABNhn0rTuEXeoWG9ieBcyDL6IGZi0Z1S5AvwFmj H0SYSScpY4R6XRDl9GjmDt7ofUtU0o29unOqtxT1vSnKRIyp/EwOp5Ie9Tt9Jw1SyVw/yguBR QsVyJjsQEVl0Tb7rj79j76VShthKZFIQxmmbRYQ6H4hbP2z2gCvWgWvTfQJnqW02pp5n2CRWd HIUjmcaKKoBccwZAd7xrMSnGiRPUuqV5QD8w8xudJjZfJaCfkJ7SxJ3jFB9MH/Mq+uQ1xnbIq XYG4L9WSf2b7xwwMCKaarQOhAHt6SZO5jIKLmxgsBNyaniqvYFImV3FRMpPh8xJyLpxXfzBis EYu5WwcsV6HI4byMWubSlIBfq0vfJBn3KNbJGtId7E5O4ICSSlTEH5f3S44nV5HHqLRNiSjtV ZsTliDXOLRrBWMvfy34mnBf1O2+f8D0DjBUFccI9MvK8RvVmK7YoilwzgPad1GjPFkb7KKhME EMWbtXgVDeF3tIcRaRO4nQU9rZuVAy51fOCjo3SaO3Q+7a+K9G/CfD/eVyatbiFi4tFB18uFM O47mCoAiwyRfzjYK5pD4xfnSL91t6hMgTe4aDUWyPy/fJiXL1PvfY02LqInWdKbUczJHc0g9j YjAE5zh X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org 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