Re: Bug report: Wrong version in pg_config - Mailing list pgsql-bugs

From Dimitri Fontaine
Subject Re: Bug report: Wrong version in pg_config
Date
Msg-id 87skab4ccz.fsf@hi-media-techno.com
Whole thread Raw
In response to Re: Bug report: Wrong version in pg_config  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Tom Lane <tgl@sss.pgh.pa.us> writes:
> You would need to take that up with whoever packages Postgres for
> Ubuntu.  It sounds like they have some glitch in the package setup.
> AFAIK, whoever that is doesn't read this list, which is mainly for
> upstream Postgres development.

I think Martin Pitt reads this list, he's maintaining both for ubuntu
and debian. The problem itself is tied to the multi-major version
support in the packaging, and in the tools.

  # dpkg -S /usr/bin/pg_config
  libpq-dev: /usr/bin/pg_config

The libpq-dev should be independant of the major version you target, but
contains pg_config. Using the direct path works too:

  postgresql-server-dev-8.4: /usr/lib/postgresql/8.4/bin/pg_config
  postgresql-server-dev-8.3: /usr/lib/postgresql/8.3/bin/pg_config

You could even adjust your PATH to prepend it with the bin tools you
need for a specific debian major.

Regards,
--
dim

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug report: Wrong version in pg_config
Next
From: Ted Clark
Date:
Subject: BUG #2197: PostgreSQL error- 'could not read block 0 of relation'