Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLeGV-0005RD-7n for pgsql-bugs@arkaria.postgresql.org; Thu, 06 Mar 2014 19:47:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WLeGU-0005DH-JQ for pgsql-bugs@arkaria.postgresql.org; Thu, 06 Mar 2014 19:47:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLeGT-0005DA-M6 for pgsql-bugs@postgresql.org; Thu, 06 Mar 2014 19:47:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WLeGN-0000E5-77 for pgsql-bugs@postgresql.org; Thu, 06 Mar 2014 19:47:33 +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 s26JlOBT030661; Thu, 6 Mar 2014 14:47:24 -0500 From: Tom Lane To: Dean Rasheed cc: "pgsql-bugs@postgresql.org" Subject: Re: BUG #9371: pg_dump acquiring ROW EXCLUSIVE locks on tables In-reply-to: References: <20140227115414.29525.45733@wrigleys.postgresql.org> Comments: In-reply-to Dean Rasheed message dated "Mon, 03 Mar 2014 15:21:17 +0000" Date: Thu, 06 Mar 2014 14:47:24 -0500 Message-ID: <30660.1394135244@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 Dean Rasheed writes: > Here's a patch for HEAD along those lines. > I've tested it on our production data and confirmed that with this > patch pg_dump no longer acquires exclusive locks. I think this should > be back-patched, since we do promise that pg_dump does not block other > readers or writers. I think this patch looks generally sane, and I agree that the excess locking is a bug worthy of being back-patched. But is anyone concerned about changing the signature of AcquireRewriteLocks() in back branches? I can't immediately think of a reason why extensions might be calling it, but ... We could avoid a signature change in back branches by making AcquireRewriteLocks() into a wrapper around some new function. But I don't want to do it like that in HEAD, so this would create a divergence between HEAD and back branches. I'm inclined to think a signature change is OK. Objections? 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