[Pkg-postgresql-public] Bug#777623: pg_wrapper can fail before picking latest version

Christoph Berg myon at debian.org
Wed Feb 11 09:13:52 UTC 2015


Re: Peter Eisentraut 2015-02-10 <54DA5E86.7080900 at debian.org>
> Package: postgresql-client-common
> 
> pg_wrapper is supposed to pick the latest version of psql and other
> tools, but it can fail with
> 
> Error: No existing local cluster is suitable as a default target. Please
> see man pg_wrapper(1) how to specify one.
> 
> before it gets to that point.
> 
> This will happen if you don't specify a host or port and there is no
> local cluster using port 5432.

Another thing that's been bugging me is that using a not-installed
version in .postgresqlrc is a fatal error, while that file should only
be used as a hint when this version is actually used.

> It seems to me that
> 
> https://alioth.debian.org/scm/loggerhead/pkg-postgresql/postgresql-common/trunk/view/head:/pg_wrapper#L109
> 
> should be moved before
> 
> https://alioth.debian.org/scm/loggerhead/pkg-postgresql/postgresql-common/trunk/view/head:/pg_wrapper#L90
> 
> (Not sure about the exact order, but I'm sure the awesome test suite
> will sort it out. ;-) )

Yeah :)

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



More information about the Pkg-postgresql-public mailing list