Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VTS4h-0005cc-Ld for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 08 Oct 2013 07:51:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VTS4g-0007Oc-RF for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 08 Oct 2013 07:51:22 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VTS4f-0007OV-WB for pgsql-pkg-debian@postgresql.org; Tue, 08 Oct 2013 07:51:22 +0000 Received: from feynman.df7cb.de ([2001:6f8:10ee::1]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VTS4b-0003vv-W2 for pgsql-pkg-debian@postgresql.org; Tue, 08 Oct 2013 07:51:21 +0000 Received: from msgid.df7cb.de (benz.df7cb.de [IPv6:2001:6f8:10ee:e:134::2]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 326AE696D2; Tue, 8 Oct 2013 09:51:15 +0200 (CEST) Date: Tue, 8 Oct 2013 09:51:14 +0200 From: Christoph Berg To: Wim Bertels Cc: PostgreSQL in Debian Subject: Re: non consistent? mixed version setup of binaries Message-ID: <20131008075114.GA24083@msgid.df7cb.de> Mail-Followup-To: Christoph Berg , Wim Bertels , PostgreSQL in Debian References: <1381053296.4771.15.camel@zwerfkat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1381053296.4771.15.camel@zwerfkat> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -0.3 (/) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org Re: Wim Bertels 2013-10-06 <1381053296.4771.15.camel@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@server:/var/lib/postgresql# psql --version > psql (PostgreSQL) 9.3.0 > ROOT@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@df7cb.de | http://www.df7cb.de/ -- Sent via pgsql-pkg-debian mailing list (pgsql-pkg-debian@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-debian