Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8vdE-00037U-G9 for pgsql-bugs@arkaria.postgresql.org; Thu, 11 May 2017 21:28:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d8vdD-0000VS-Ur for pgsql-bugs@arkaria.postgresql.org; Thu, 11 May 2017 21:28:19 +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_2) (envelope-from ) id 1d8vdD-0000Uc-0e; Thu, 11 May 2017 21:28:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d8vdA-0002KU-FM; Thu, 11 May 2017 21:28:17 +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 v4BLSCSm009142; Thu, 11 May 2017 17:28:12 -0400 From: Tom Lane To: Andres Freund cc: Peter Eisentraut , Petr Jelinek , pgsql-hackers@postgresql.org, Noah Misch , Jason Petersen , Michael Paquier , PostgreSQL mailing lists Subject: Re: [HACKERS] Concurrent ALTER SEQUENCE RESTART Regression In-reply-to: <20170511204012.pf2k4jmauyebfxkw@alap3.anarazel.de> References: <20170430080517.GA811193@rfd.leadboat.com> <59aeb834-b113-6769-bfe4-65f2f8c875e3@2ndquadrant.com> <20170507234334.yimkp6aq2o43wtt2@alap3.anarazel.de> <4521f870-bb1f-1b29-3b3f-42419696efe7@2ndquadrant.com> <20d59e42-4a08-fa34-29df-9f54b3ef5ba7@2ndquadrant.com> <2913.1494426542@sss.pgh.pa.us> <20170510162450.bzfktkeexezepf6c@alap3.anarazel.de> <90255529-1de1-0aad-c545-f75d08479a9a@2ndquadrant.com> <20170511204012.pf2k4jmauyebfxkw@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 11 May 2017 13:40:12 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9140.1494538092.1@sss.pgh.pa.us> Date: Thu, 11 May 2017 17:28:12 -0400 Message-ID: <9141.1494538092@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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Andres Freund writes: > On 2017-05-11 16:27:48 -0400, Peter Eisentraut wrote: >> (So without contention fast-path locking beats the extra dance that >> open_share_lock() does.) > That's kind of surprising, I really wouldn't have thought it'd be faster > without. I guess it's the overhead of sigsetjmp(). Cool. My results (posted nearby) lead me to suspect that the improvement Peter sees from 9.1 to 9.2 has little to do with fastpath locking and a lot to do with some improvement or other in subtransaction lock management. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs