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

Peter Eisentraut petere at debian.org
Tue Feb 10 19:39:50 UTC 2015


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.

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. ;-) )



More information about the Pkg-postgresql-public mailing list