Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aUN4K-0005bK-2s for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Feb 2016 23:24:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aUN4J-0006x1-Lu for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Feb 2016 23:24:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aUN2y-0005St-TS for pgsql-hackers@postgresql.org; Fri, 12 Feb 2016 23:22:45 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aUN2s-0003IX-05 for pgsql-hackers@postgresql.org; Fri, 12 Feb 2016 23:22:43 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id F23FF3AEA9E; Sat, 13 Feb 2016 00:22:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (pD9F6A66F.dip0.t-ipconnect.de [217.246.166.111]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 0A6C1580004; Sat, 13 Feb 2016 00:22:33 +0100 (CET) Received: by anarazel.de (Postfix, from userid 1000) id 7490C101A0A; Sat, 13 Feb 2016 00:22:32 +0100 (CET) Date: Sat, 13 Feb 2016 00:22:32 +0100 From: Andres Freund To: Tom Lane Cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Add some isolation tests for deadlock detection and resolution. Message-ID: <20160212232232.GA29473@awork2.anarazel.de> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1427.1455301014@sss.pgh.pa.us> X-Pg-Spam-Score: -4.3 (----) 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 On 2016-02-12 13:16:54 -0500, Tom Lane wrote: > Investigation showed that there are a couple of reasons. One, > isolationtester's is-it-waiting query takes an insane amount of > time under CLOBBER_CACHE_ALWAYS --- over half a second on my > reasonably new server. I wonder if we shouldn't just expose a 'which pid is process X waiting for' API, implemented serverside. That's generally really useful, and looks like it's actually going to be less complicated than that query... And it's surely going to be faster. Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers