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

Re: Bug report: Wrong version in pg_config

From: Dimitri Fontaine <dfontaine(at)hi-media(dot)com>
To: Adam Matan <adam(at)linqmap(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug report: Wrong version in pg_config
Date: 2010-01-12 14:12:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Adam Matan <adam(at)linqmap(dot)com> writes:
> But still, pg_config remains with the removed version, after postresql restart and even total reboot:
> $  pg_config
> BINDIR = /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 ?= pg_config

And the call like this from debian/rules or elsewhere:
  make PG_CONFIG=/usr/lib/postgresql/$version/bin/pg_config

I'm preparing some tools to automate all this for debian packaging
extensions, see the following:


In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2010-01-12 14:18:20
Subject: Re: Bug report: Wrong version in pg_config
Previous:From: Thomas SpeckerDate: 2010-01-12 13:04:05
Subject: Re: Failed to run initdb - not resolved bug 5130

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