From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
Cc: | "Hitoshi Harada *EXTERN*" <umi(dot)tanuki(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: htup header reorganization breaks many extension modules |
Date: | 2012-09-26 08:50:51 |
Message-ID: | CAB7nPqRbr2DE9XmozRvh_WuD6vUmbS_30OYHZD6iTt5r7pCGUg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Sep 26, 2012 at 4:14 PM, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>wrote:
> Hitoshi Harada wrote:
> > On Tue, Sep 25, 2012 at 5:30 PM, Peter Eisentraut <peter_e(at)gmx(dot)net>
> wrote:
> >> I haven't followed the details of the htup header reorganization, but
> I
> >> have noticed that a number of external extension modules will be
> broken
> >> because of the move of GETSTRUCT() and to a lesser extent
> >> heap_getattr(). Of course some #ifdefs can fix that, but it seems
> >> annoying to make everyone do that. Maybe this could be reconsidered
> to
> >> reduce the impact on other projects.
>
> > But it's only add #include "access/htup_details.h"? I'd not argue
> > it's harmful unless I missed your point.
>
> I guess the point is that you need an #ifdef if you want a module
> to be able to build with both 9.3 and lower versions.
>
> Otherwise the compiler will complain about the missing include
> file on older versions.
>
The modules of Postgres depend on the core and not the opposite, so isn't
it the responsability
of the maintainers of the modules to insure that what they make is still
compilable with postgres?
This can be simply fixed by providing, as mentionned, ifdefs controlled by
PG_VERSION_NUM
including htup_details.h, so the correction effort is not that much...
--
Michael Paquier
http://michael.otacoo.com
From | Date | Subject | |
---|---|---|---|
Next Message | Виктор Егоров | 2012-09-26 08:59:49 | Re: [COMMITTERS] pgsql: Properly set relpersistence for fake relcache entries. |
Previous Message | Hannu Krosing | 2012-09-26 08:46:46 | Re: Oid registry |