Adam Matan <adam@linqmap.com> writes:
> But still, pg_config remains with the removed version, after postresql re=
start and even total reboot:
>
> $ =C2=A0pg_config
> BINDIR =3D /usr/lib/postgresql/8.4/bin
[...]
> This creates confusion with external software packages trying to use pgxs=
, for example.
> Any ideas how to solve this?
Use /usr/lib/postgresql/$version/bin/pg_config, and adapt your
extension's Makefile to target that. For example with the following in
the Makefile:
PG_CONFIG ?=3D pg_config
And the call like this from debian/rules or elsewhere:
make PG_CONFIG=3D/usr/lib/postgresql/$version/bin/pg_config
I'm preparing some tools to automate all this for debian packaging
extensions, see the following:
http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/2010-Janua=
ry/000546.html
Regards,
--=20
dim