Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W33Ks-0006l0-Kc for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Jan 2014 12:43:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W33Kr-0002Oe-W0 for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Jan 2014 12:43:14 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W33Kr-0002OX-A5 for pgsql-bugs@postgresql.org; Tue, 14 Jan 2014 12:43:13 +0000 Received: from timantti.taisia.fi ([2001:1bc8:100:6::b001]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W33Kn-0005YQ-HC for pgsql-bugs@postgresql.org; Tue, 14 Jan 2014 12:43:12 +0000 Received: by timantti.taisia.fi (Postfix, from userid 1001) id C864D280062; Tue, 14 Jan 2014 14:43:05 +0200 (EET) Date: Tue, 14 Jan 2014 14:43:05 +0200 From: Oskari Saarenmaa To: Alvaro Herrera Cc: Andres Freund , pgsql-bugs@postgresql.org Subject: Re: BUG #8470: 9.3 locking/subtransaction performance regression Message-ID: <20140114124305.GA28072@saarenmaa.fi> References: <20131220204753.GG22570@eldon.alvh.no-ip.org> <20131223155603.GI22570@eldon.alvh.no-ip.org> <20131223162903.GJ22570@eldon.alvh.no-ip.org> <20131223195300.GK22570@eldon.alvh.no-ip.org> <20131230181151.GG12910@alap2.anarazel.de> <20131231163418.GW22570@eldon.alvh.no-ip.org> <20131231202753.GY22570@eldon.alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131231202753.GY22570@eldon.alvh.no-ip.org> User-Agent: Mutt/1.5.20 (2009-12-10) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Thanks for looking at this and sorry about the late reply, I finally got around to testing your latest patch. 20.12.2013 22:47, Alvaro Herrera kirjoitti: >> Removing the BEGIN/EXCEPTION/END block and just doing a 'SELECT FOR >> UPDATE' for a suitable row is significantly slower in 9.3.0 (314.765 ms >> vs 118.894 ms on 9.2.4). A 'SELECT' without a FOR UPDATE and >> BEGIN/EXCEPTION/END has the same performance on 9.2.4 and 9.3.0. > > I have come up with the attached patch. As far as I can tell it > restores performance roughly to the level of 9.2 for this test case; > could you please try it out and see if it fixes things for you? It'd be > particularly good if you can check not only the test case you submitted > but also the one that made you explore this in the first place. I didn't try this patch, but I built today's REL9_3_STABLE with the patch from your mail on the 31st of Dec (http://github.com/saaros/postgres/tree/alvaro-multixact-optimize-9.3) and ran the older version of my appliaction's test suite which has a case that times out after 3 minutes with unpatched 9.3. With the current patch the test case successfully completes in ~20 seconds which is a major improvement although it's still slower than 9.2 It also passes all other test cases in my test suite. Do you think it'll make it to 9.3.3? Thanks, Oskari -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs