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

Re: Add subdirectory support for DATA/DOCS with PGXS

From: Mark Cave-Ayland <mark(dot)cave-ayland(at)siriusit(dot)co(dot)uk>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Add subdirectory support for DATA/DOCS with PGXS
Date: 2009-12-30 15:10:11
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Alvaro Herrera wrote:

>> The attached patch is a prototype which allows the user to specify a
>> new MODULEDIR variable in a module makefile which, if specified,
>> will install DATA and DOCS items in contrib/$(MODULEDIR) rather than
>> just contrib. If MODULEDIR is left unspecified, the files will
>> simply be stored directly in contrib/ as before.
> As a proof of its usefulness, you could remove DATA_TSEARCH and replace
> it with usage of MODULEDIR, right?

Not in its current form because PGXS always places files underneath a 
contrib/ subdirectory within datadir. However, if people are happier 
with this approach then it shouldn't be too hard to alter things so that 
my PGXS Makefile would look like this:


Once in this form it should then be possible to use this code to replace 
the DATA_TSEARCH variable that is currently in place.



Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
t: +44 870 608 0063

Sirius Labs:

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2009-12-30 15:18:11
Subject: Re: Add subdirectory support for DATA/DOCS with PGXS
Previous:From: Tom LaneDate: 2009-12-30 15:00:41
Subject: Re: Stats for inheritance trees

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