[Pkg-postgresql-public] psql & running 8.0 and 8.1 concurrently

Martin Pitt mpitt at debian.org
Sat Jul 22 15:09:21 UTC 2006


Hi Robert,

Robert Treat [2006-07-18 11:34 -0400]:
> One thing that I think was a problem is that neither of my clusters were 
> running on port 5432... one was on 5480 and the other 5433.   

Ah, that is indeed the point, sorry for missing it in your first mail.
user_cluster_map() (the function that figures out which cluster you
want to access) first looks at ~/.postgresqlrc, then at
/etc/postgresql-common/user_clusters. If neither exists, and only one
cluster exists, then it uses that. If no cluster exists at all, it
takes the lastest installed version as default. The last fallback is
to use the version of the default port 5432, but if that does not
exist, it will return an undefined value as the version.

I do not see which cluster it should default to, so I will add a
proper error message which points out the various methods of
specifying a cluster.

Thank you!

Martin
-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

In a world without walls and fences, who needs Windows and Gates?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20060722/d45fbe88/attachment.pgp


More information about the Pkg-postgresql-public mailing list