Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aUABW-0005wz-NY for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Feb 2016 09:38:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aUABW-0004FB-5n for pgsql-hackers@arkaria.postgresql.org; Fri, 12 Feb 2016 09:38:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aUAAB-0001k0-Ln for pgsql-hackers@postgresql.org; Fri, 12 Feb 2016 09:37:19 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aUAA8-0006QY-1u for pgsql-hackers@postgresql.org; Fri, 12 Feb 2016 09:37:18 +0000 Received: by mail-wm0-x232.google.com with SMTP id 128so54362707wmz.1 for ; Fri, 12 Feb 2016 01:37:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2ygKa564WOL8G7f0YDGIqJtFfLn4SnitRP8lNuCPtbY=; b=Cw/tGjXu7N6wVcGvmRlezXrwhKavAWHZermic6dwUH2fHbmG/lxTHXoq2VXHMdilMx Dp+Qm3ffu5WlTcjJNI+csKkjXTG1j3Lzvvnhub+IQ1r/1rDKgkhoPlRkqsDNKgDqWVk6 8BUALiUY8LIvOLLkYfkaI4VBRiH5cdIpT8czHHu+CJYEUb9XzBvSmqZA8lV+85+mnIZE 5RYzY7nJClLEl18aZ7GXbCv/mHWROwY9tH1+tYZZ+aXrl3pgCxhh4GufVKhZXNo94SNu lw+j7tLT+bd7FwWjAZtSu3wxxKeJ4Fe9kkHS3n5J7YbIvmLG7WZBKy3YRFdJGNlP0GjU jC1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=2ygKa564WOL8G7f0YDGIqJtFfLn4SnitRP8lNuCPtbY=; b=KOIwhJfSmnSk2ct/mduCln7/unU83CEC+REKZ9SmmDMN7w8LPe+ybofDTim9ISsoTS EZXkd34tYfiLyqwpUlgeeiI/cPE2X3D7Bmzl/2YV+aoZFv0TLcWZTeCCPYmHXEvuA3Ch iFXTHPyMhYyuBrjR02eUXsXLNWjLyXfHgwAuv3TnX1b8yW6mFS38NEq/JkKzlHOnS3wK OOGDkCoOCtThcovTauZsMZcR37tRf2oVNpJ3Kq3lLy96BGkpTqvrMHXXlDy0jjqjOvGa Dv+sQDRnS7kC/JRU5viNSPJCtYOhWsR4NWW/Gi2dk8d28POVS8XpVyIIU0n2fT8h5ICD 3bDA== X-Gm-Message-State: AG10YOSgpp1io7xqF4E+96cdVHwaUQeQBggXPARjFnxqNVtNPxinyV2jkMTgogsIsO/xcAdRy+lTbTszBYceuA== MIME-Version: 1.0 X-Received: by 10.28.46.84 with SMTP id u81mr1988110wmu.102.1455269835041; Fri, 12 Feb 2016 01:37:15 -0800 (PST) Received: by 10.28.28.5 with HTTP; Fri, 12 Feb 2016 01:37:14 -0800 (PST) In-Reply-To: References: <56BB608B.10002@iki.fi> Date: Fri, 12 Feb 2016 15:07:14 +0530 Message-ID: Subject: Re: [COMMITTERS] pgsql: Code cleanup in the wake of recent LWLock refactoring. From: Amit Kapila To: Pavel Stehule Cc: Robert Haas , Heikki Linnakangas , "pgsql-hackers@postgresql.org" Content-Type: multipart/alternative; boundary=001a1142443291f309052b8f6965 X-Pg-Spam-Score: -2.4 (--) 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 --001a1142443291f309052b8f6965 Content-Type: text/plain; charset=UTF-8 On Fri, Feb 12, 2016 at 2:03 PM, Pavel Stehule wrote: > > > There will be necessary more changes than this. Orafce has some parts >> based on lw locks. I am able to compile it without any issue. But the lock >> mechanism is broken now - so impact on extensions will be higher. Have to >> do some research. >> > > if somebody would to use it for testing > > https://github.com/orafce/orafce > > https://github.com/orafce/orafce/commit/fff56ed7e17ed5d6f8e6b71591ff1a6d6ff12d79 > > With last commit I am able to compile orafce without warnings, but > installcheck is broken. It can be bug in orafce, but this code worked last > 7 years. > > One question regarding your latest commit in orafce: - RequestAddinShmemSpace(SHMEMMSGSZ); +#if PG_VERSION_NUM >= 90600 + + RequestNamedLWLockTranche("orafce", 1); + +#else + RequestAddinLWLocks(1); +#endif + + RequestAddinShmemSpace(SHMEMMSGSZ); + It seems you have moved request for shared memory (RequestAddinShmemSpace()) after requesting locks, any reason for same? You don't need to change the request for shared memory. With Regards, Amit Kapila. EnterpriseDB: http://www.enterprisedb.com --001a1142443291f309052b8f6965 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
--001a1142443291f309052b8f6965--