Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aUbbw-0007QB-Jt for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Feb 2016 14:55:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aUbbw-0001TZ-5r for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Feb 2016 14:55:48 +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 1aUbab-0008Mv-8E for pgsql-hackers@postgresql.org; Sat, 13 Feb 2016 14:54:25 +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) (envelope-from ) id 1aUbaY-00048x-R1 for pgsql-hackers@postgresql.org; Sat, 13 Feb 2016 14:54:24 +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 u1DEs7um020164; Sat, 13 Feb 2016 09:54:07 -0500 From: Tom Lane To: Simon Riggs cc: Robert Haas , Heikki Linnakangas , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Code cleanup in the wake of recent LWLock refactoring. In-reply-to: References: <56BB608B.10002@iki.fi> <27480.1455122196@sss.pgh.pa.us> Comments: In-reply-to Simon Riggs message dated "Sat, 13 Feb 2016 11:40:09 +0000" Date: Sat, 13 Feb 2016 09:54:07 -0500 Message-ID: <20163.1455375247@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 Simon Riggs writes: > On 10 February 2016 at 16:36, Tom Lane wrote: >> FWIW, I wasn't paying attention either, but I'm convinced by Robert's >> argument. Avoiding coupling between extensions is worth an API break. > Old APIs - why can't we keep it? Because with the old API, a bug in extension A may go unnoticed in A's testing but break when it's combined with extension B. That causes headaches all around, not just to the extension authors but to their users. The new API ensures detection of didn't-request-enough-locks bugs regardless of which other extensions are installed. That is worth the cost of a forced API update, in Robert's judgement and mine too. (Having said that, I wonder if we could put back the old API as a shim layer *without* the allocate-some-excess-locks proviso. That would get us to a situation where standalone testing of a broken extension would disclose its bug, without breaking non-buggy extensions.) 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