Re: [PATCH] Remove useless USE_PGXS support in contrib - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [PATCH] Remove useless USE_PGXS support in contrib
Date
Msg-id 1371611088.13762.27.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: [PATCH] Remove useless USE_PGXS support in contrib  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Responses Re: [PATCH] Remove useless USE_PGXS support in contrib
List pgsql-hackers
On Mon, 2013-06-17 at 11:41 +0200, Dimitri Fontaine wrote:
> I agree that having both cases (sections) in the Makefile is a bad
> idea.
> Still, why should we keep the in-tree build instructions?
> 
> Would it be possible instead to instruct PGXN to work with a non
> installed server source tree? And how much do we need that really? 

We could do something like

PG_CONFIG = fake_intree_pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)

where fake_intree_pg_config is a purpose-built shell script that points
to the right places inside the source tree.





pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [PATCH] Remove useless USE_PGXS support in contrib
Next
From: David Fetter
Date:
Subject: Re: Review: UNNEST (and other functions) WITH ORDINALITY