From: Amit Kapila <amit.kapila16@gmail.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Code cleanup in the wake of recent LWLock refactoring.
Date: Fri, 12 Feb 2016 15:07:14 +0530
Message-ID: <CAA4eK1+USbmpo3tweXb8NJQ3zR5e9LREF6GVQm_WtqKLHDFZKA@mail.gmail.com> (raw)
In-Reply-To: <CAFj8pRCLvJkT9Y+e4Lbi28sMy0uXWscUKZCAs29SzLXpud3reA@mail.gmail.com>
References: <E1aTWRp-0001Ss-Vv@gemulon.postgresql.org>
<56BB608B.10002@iki.fi>
<CA+TgmoabXpECmAGD-G22Z9Gf9_fCVB3xpFVAUykBHUYckyQSyg@mail.gmail.com>
<CAFj8pRDn0t66Muo9-1RBtdMJ+01n0JMjxWUqaSgSEG=zM7b-qg@mail.gmail.com>
<CAFj8pRCLvJkT9Y+e4Lbi28sMy0uXWscUKZCAs29SzLXpud3reA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On Fri, Feb 12, 2016 at 2:03 PM, Pavel Stehule <pavel.stehule@gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: amit.kapila16@gmail.com, pavel.stehule@gmail.com, robertmhaas@gmail.com, hlinnaka@iki.fi, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Code cleanup in the wake of recent LWLock refactoring.
In-Reply-To: <CAA4eK1+USbmpo3tweXb8NJQ3zR5e9LREF6GVQm_WtqKLHDFZKA@mail.gmail.com>
References: <E1aTWRp-0001Ss-Vv@gemulon.postgresql.org> <56BB608B.10002@iki.fi> <CA+TgmoabXpECmAGD-G22Z9Gf9_fCVB3xpFVAUykBHUYckyQSyg@mail.gmail.com> <CAFj8pRDn0t66Muo9-1RBtdMJ+01n0JMjxWUqaSgSEG=zM7b-qg@mail.gmail.com> <CAFj8pRCLvJkT9Y+e4Lbi28sMy0uXWscUKZCAs29SzLXpud3reA@mail.gmail.com> <CAA4eK1+USbmpo3tweXb8NJQ3zR5e9LREF6GVQm_WtqKLHDFZKA@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox