Re: non consistent? mixed version setup of binaries

From: Christoph Berg <cb(at)df7cb(dot)de>
To: Wim Bertels <wim(dot)bertels(at)khleuven(dot)be>
Cc: PostgreSQL in Debian <pgsql-pkg-debian(at)postgresql(dot)org>
Subject: Re: non consistent? mixed version setup of binaries
Date: 2013-10-08 07:51:14
Message-ID: 20131008075114.GA24083@msgid.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-debian

Re: Wim Bertels 2013-10-06 <1381053296(dot)4771(dot)15(dot)camel(at)zwerfkat>
> Hallo,
>
> using the apt.postgresql.org repo on debian stable, with versions 8.4 to
> 9.3 installed,
> my psql version reports as 9.3
> while my pg_dump version reports as 9.1
>
> eg:
> ROOT(at)server:/var/lib/postgresql# psql --version
> psql (PostgreSQL) 9.3.0
> ROOT(at)server:/var/lib/postgresql# pg_dump --version
> pg_dump (PostgreSQL) 9.1.9

Hi Wim,

this is expected. pg_wrapper will always redirect psql to the latest
version installed because it's downwards compatible, while directing
all other wrapped commands to the cluster you have selected.

9.1 seems to be the one on port 5432, so that's your default.

> so a standard pg_dump on a 9.3 database will fail,
> while a standard psql command will succeed;
> which seems inconsistent
>
> (the workarounc solution is in the case to use the full path to call the
> command)

You should be using pg_dump --cluster 9.3/main .

Christoph
--
cb(at)df7cb(dot)de | http://www.df7cb.de/

In response to

Responses

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message Wim Bertels 2013-10-08 08:19:02 Re: non consistent? mixed version setup of binaries
Previous Message Wim Bertels 2013-10-06 09:54:56 non consistent? mixed version setup of binaries