Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aeB0G-0002Pp-Q4 for pgsql-committers@arkaria.postgresql.org; Fri, 11 Mar 2016 00:32:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aeB0G-0006sm-7W for pgsql-committers@arkaria.postgresql.org; Fri, 11 Mar 2016 00:32:28 +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 1aeB0E-0006sd-RQ for pgsql-committers@postgresql.org; Fri, 11 Mar 2016 00:32:26 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aeB06-000270-Mw for pgsql-committers@postgresql.org; Fri, 11 Mar 2016 00:32:25 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id EB0BE20AC1 for ; Thu, 10 Mar 2016 19:32:16 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Thu, 10 Mar 2016 19:32:16 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=4Zncim/5+94z2Oj eFArGLYLZIMk=; b=sB/c8NRE+wfPcHWIcDLLw6b53sL/4fDuzTwNX7vGLchO41y 8ift8ix4yYwuWeP08pNPkw0jRNkh2YW9aJ0mcCnmF4aEKh4DQFI7aQJWaa2wsIdI asmOHMLuN1mEye4BYCNW4AjlDvF733UlEQFbT+OwFS6xWVokq9KmL/HNp+s8= X-Sasl-enc: 0Lzajhwnp8ZOMr0TRC6NbZFpel+idQQNnr4kG0ECJSGg 1457656336 Received: from intern.anarazel.de (unknown [184.23.178.130]) by mail.messagingengine.com (Postfix) with ESMTPA id 9D6ABC0001D; Thu, 10 Mar 2016 19:32:16 -0500 (EST) Date: Thu, 10 Mar 2016 16:32:15 -0800 From: Andres Freund To: Robert Haas Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Provide much better wait information in pg_stat_activity. Message-ID: <20160311003215.n67y5saowvnghskg@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 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