Re: Bug report: Wrong version in pg_config

From: Dimitri Fontaine <dfontaine(at)hi-media(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Adam Matan <adam(at)linqmap(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug report: Wrong version in pg_config
Date: 2010-01-12 14:38:36
Message-ID: 87skab4ccz.fsf@hi-media-techno.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Ted Clark 2010-01-12 16:26:23 BUG #2197: PostgreSQL error- 'could not read block 0 of relation'
Previous Message Tom Lane 2010-01-12 14:18:20 Re: Bug report: Wrong version in pg_config