Обсуждение: Re: [HACKERS] [COMMITTERS] pgsql: Simplify LWLock tranche machinery by removing array_base/array_s

Поиск
Список
Период
Сортировка

Re: [HACKERS] [COMMITTERS] pgsql: Simplify LWLock tranche machinery by removing array_base/array_s

От
Robert Haas
Дата:
On Wed, Dec 21, 2016 at 2:14 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> Is there some help for extensions developers, how to fix extensions after
> this change?
>
> Orafce hits this change.

array_base and array_stride are gone; don't pass them.  The second
argument to LWLockRegisterTranche() is now the tranche name.  Pass
that instead of a structure.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



Re: [HACKERS] [COMMITTERS] pgsql: Simplify LWLock tranche machinery by removing array_base/array_s

От
Pavel Stehule
Дата:


2016-12-21 13:54 GMT+01:00 Robert Haas <robertmhaas@gmail.com>:
On Wed, Dec 21, 2016 at 2:14 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> Is there some help for extensions developers, how to fix extensions after
> this change?
>
> Orafce hits this change.

array_base and array_stride are gone; don't pass them.  The second
argument to LWLockRegisterTranche() is now the tranche name.  Pass
that instead of a structure.

Thank you

Pavel 

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Re: [HACKERS] [COMMITTERS] pgsql: Simplify LWLock tranche machinery by removing array_base/array_s

От
Pavel Stehule
Дата:


2016-12-21 14:00 GMT+01:00 Pavel Stehule <pavel.stehule@gmail.com>:


2016-12-21 13:54 GMT+01:00 Robert Haas <robertmhaas@gmail.com>:
On Wed, Dec 21, 2016 at 2:14 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> Is there some help for extensions developers, how to fix extensions after
> this change?
>
> Orafce hits this change.

array_base and array_stride are gone; don't pass them.  The second
argument to LWLockRegisterTranche() is now the tranche name.  Pass
that instead of a structure.

Thank you

It is working - for record the necessary changes in Orafce  https://github.com/orafce/orafce/commit/cac48984458c24d92243a7d4df549409dec0b826

Regards

Pavel


Pavel 

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company