Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aTXLH-0002pq-Rs for pgsql-committers@arkaria.postgresql.org; Wed, 10 Feb 2016 16:10:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aTXLH-0006cN-El for pgsql-committers@arkaria.postgresql.org; Wed, 10 Feb 2016 16:10:11 +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 1aTXL4-0006O1-Ue for pgsql-committers@postgresql.org; Wed, 10 Feb 2016 16:09:59 +0000 Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aTXKy-00022v-IW; Wed, 10 Feb 2016 16:09:57 +0000 Received: by mail-pf0-x232.google.com with SMTP id e127so14120414pfe.3; Wed, 10 Feb 2016 08:09:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=2qS97+YLhJ/08/muXdd+zQUK1DOWM/PXUpOy9bjwF80=; b=UADRwZGppu2PjWojz0oHwwmQ6E4ZPZpSrwKqC+WW1qBHo+v+V87gPlxo4qkaveIyfF yeKHZQCcS3RHQ8N+a+dse2xcm6FeKLuMnUN6/u2z3pqvjOsp8mCyeHzApH9Y8BakIhg8 jaCZXCVbUPPYdLYQtuytnE0ryGQ0pTs4s9tvFUQ+ikJJhGAHOHUM6fY8KwZMjn5P45Ih Kk8gfdyso0COScotSd7JJfbYbcOjQkRwVIbliMSPrQhdiC+VN32WrH0Gdi21qNgt8Jnk Dcr7h+TVpclm6awcG5GysN59+kXb5S/NKJizfJi0QjOu8tnpepfPR84089LThJBls1N0 Tlug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=2qS97+YLhJ/08/muXdd+zQUK1DOWM/PXUpOy9bjwF80=; b=eMrBRrKgvoeK/V+j3unwAK1u3FVSB14k92YRisWCgAOAWJNS7QDAZBc6fYvYVvqr20 eKF9r1Q+CWr/KXus0XF/JYPUch4GaJMk9OXWOomeTRXB/7/EgOod4MAKvLRdRoY2zIS1 3dRTY0esbrf8vwSOQY/Pr8BsdeIo42Siwca6Epi10XalFDb+jylM5Qd5nCbNov+Rlqh2 V+rde/CAxeO0uYAtSag3hat3Ox5oSqYEbO4SrrWYU9eDhocG7eTgbQDOYuTHm3lqr2UI TsQqmSm3plsf2O2zP45KqE/6FHZagFsS/3Eu3r7Q9iqEdJiZb65NdmL4v+khRMvK5JVW LoMA== X-Gm-Message-State: AG10YOQaeU0nha6VFgyGd2Ey2LxzHpvdCrUe6pU9JP0TuihUJIaEFqs4jF4TOvUatkjX+Q== X-Received: by 10.98.68.212 with SMTP id m81mr59032275pfi.135.1455120591551; Wed, 10 Feb 2016 08:09:51 -0800 (PST) Received: from [192.168.1.115] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id w89sm6240930pfi.13.2016.02.10.08.09.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Feb 2016 08:09:50 -0800 (PST) Subject: Re: pgsql: Code cleanup in the wake of recent LWLock refactoring. To: Robert Haas , pgsql-committers@postgresql.org References: From: Heikki Linnakangas Message-ID: <56BB608B.10002@iki.fi> Date: Wed, 10 Feb 2016 18:08:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 10/02/16 17:12, Robert Haas wrote: > Code cleanup in the wake of recent LWLock refactoring. > > As of commit c1772ad9225641c921545b35c84ee478c326b95e, there's no > longer any way of requesting additional LWLocks in the main tranche, > so we don't need NumLWLocks() or LWLockAssign() any more. Also, > some of the allocation counters that we had previously aren't needed > any more either. (Sorry if this was discussed already, I haven't been paying attention) LWLockAssign() is used by extensions. Are we OK with just breaking them, requiring them to change LWLockAssign() with the new mechanism, with #ifdefs to support multiple server versions? Seems like it shouldn't be too hard to keep LWLockAssign() around for the benefit of extensions, so it seems a bit inconsiderate to remove it. - Heikki -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers