[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Postgresql connection to 8.1 and 8.2 server.



I need to connect to a local Postgresql 8.2 server and to a remote server with Postgresql 8.1.

Both 8.1-client and 8.2-client are installed, but I can't get /etc/postgresql-common/user_clusters configured correctly so that psql 8.1 will be used when trying to connect to the 8.1 server and psql 8.2 to the local 8.2 server.

Even more, it always gets the first definition that is in user_clusters.

user_clusters looks like this:

# USER  GROUP   VERSION CLUSTER DATABASE

*       *       8.2     main    *
*       *       8.1     remote-server:5432       *

Any ideas?



Reply to: