Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aXrZV-0004zk-MZ for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Feb 2016 14:34:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aXrZV-0001kq-5p for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Feb 2016 14:34:45 +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 1aXrZT-0001jw-Tu for pgsql-hackers@postgresql.org; Mon, 22 Feb 2016 14:34:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aXrZR-0002Uk-Bt for pgsql-hackers@postgresql.org; Mon, 22 Feb 2016 14:34:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u1MEYbvw010144; Mon, 22 Feb 2016 09:34:37 -0500 From: Tom Lane To: Robert Haas cc: Andres Freund , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Add some isolation tests for deadlock detection and resolution. In-reply-to: References: <21023.1455200996@sss.pgh.pa.us> <14581.1455205343@sss.pgh.pa.us> <20201.1455210279@sss.pgh.pa.us> <24444.1455251654@sss.pgh.pa.us> <1427.1455301014@sss.pgh.pa.us> <20160212232232.GA29473@awork2.anarazel.de> <1056.1455571766@sss.pgh.pa.us> <16182.1455721494@sss.pgh.pa.us> <11103.1456089966@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 22 Feb 2016 19:15:14 +0530" Date: Mon, 22 Feb 2016 09:34:37 -0500 Message-ID: <10143.1456151677@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > On Mon, Feb 22, 2016 at 2:56 AM, Tom Lane wrote: > ! held by the indicated process. False indicates that this process is > ! currently waiting to acquire this lock, which implies that at > least one other > ! process is holding a conflicting lock mode on the same lockable object. > I know you're just updating existing language here, but this is false. > It only implies that one other process is holding *or waiting for* a > conflicting lock mode on the same lockable object. True. I had considered whether to fix that point as well, and decided that it might just be overcomplicating matters. But since you complain, I'll add "or waiting for". It also occurred to me last night that pg_blocking_pids() needs a disclaimer similar to the existing one for pg_locks about how using it a lot could put a performance drag on the system. Other than adjusting those points, I think this is ready to go, and will commit later today if I hear no objections. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers