[Pkg-postgresql-public] Bug#535962: /usr/share/postgresql-common/pg_wrapper: no way to use newer binaries
Martin Pitt
mpitt at debian.org
Thu Aug 16 11:12:49 UTC 2012
tag 535962 moreinfo
thanks
Hello Jasen,
I'm cleaning up old bug reports and stumbled upon this one.
Jasen Betts [2009-07-06 23:30 +1200]:
> postgresql reccomends using the pg_dump version that matches the
> destination database. but pg_wrapper does not
> provide a way to do this.
pg_wrapper automatically selects the version that corresponds to the
cluster you are trying to talk to, as long as it is a local one.
For remote databases you can specify the version with --cluster, e. g.:
pg_dump --cluster 9.1/my.db.host:5432
or set the version in ~/.postgresqlrc (see man postgresqlrc) or
/etc/postgresql-common/user_clusters (see man user_clusters).
If you explicitly want to use a non-matching client version for a
local cluster, you can call e. g. /usr/lib/postgresql/9.1/bin/pg_dump
explicitly to circumvent pg_wrapper.
Is that sufficient for your needs?
Thanks,
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
More information about the Pkg-postgresql-public
mailing list