Re: Version defines - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Version defines
Date
Msg-id 28960.1099244999@sss.pgh.pa.us
Whole thread Raw
In response to Re: Version defines  (James William Pye <flaw@rhid.com>)
Responses Re: Version defines
List pgsql-hackers
James William Pye <flaw@rhid.com> writes:
>> At compile time, you should be checking the specific feature you care
>> about,

> Well, for one of my uses, it is not a feature check. My PL loads a
> Python extension module whose path is dependent on the major and minor
> version of the PostgreSQL installation that the PL was compiled against.
> So I construct the module path string based on the major and minor at
> compile time.

Er ... can't you just keep it in pkglibdir and refer to it via $libdir?
Given that 8.0 now supports relocatable installations, I'd think it best
to avoid hardwiring any paths at compile time.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: make check error on -HEAD
Next
From: Heikki Linnakangas
Date:
Subject: Re: fsync, ext2 on Linux