Skip site navigation (1) Skip section navigation (2)

Re: Version defines

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: James William Pye <flaw(at)rhid(dot)com>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Version defines
Date: 2004-10-31 17:49:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
James William Pye <flaw(at)rhid(dot)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

In response to


pgsql-hackers by date

Next:From: Heikki LinnakangasDate: 2004-10-31 18:02:09
Subject: Re: fsync, ext2 on Linux
Previous:From: Tom LaneDate: 2004-10-31 17:38:32
Subject: Re: make check error on -HEAD

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group