Discussion:
Compatibility between different versions of psql client and postgresql server
(too old to reply)
Cris Carampa
2004-08-27 06:43:56 UTC
Permalink
When connecting from a psql client version xyz to a postgresql server
version zyx across the network, what are the rules to follow for
assuring compatibility between different versions?

For example, is it possible to connect from psql 7.2.x to postgresql
server 7.4.x?

Thank you. Kind regards,
--
Cris Carampa (spamto:***@operamail.com)
I got some John Coltrane on the stereo baby make it feel all right
I got some fine wine in the freezer mama I know what you like
I said a man works hard all day he can do what he wants to at night
Greg Sabino Mullane
2004-08-28 14:28:16 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Cris Carampa
When connecting from a psql client version xyz to a postgresql server
version zyx across the network, what are the rules to follow for
assuring compatibility between different versions?
The basic rule is: use the same version for both.
Post by Cris Carampa
For example, is it possible to connect from psql 7.2.x to postgresql
server 7.4.x?
This one is possible, but anytime you mix versions, you will probably have
problems. Since psql is part of the main PostgreSQL distribution, if
you have the 7.4.x server, you should have the 7.4.x psql as well. 7.2.x
(the server) is rather old and has some serious issues, and it should not
be used. In general, going from an older psql to a newer server will cause
less problems than going the other way.

Having said all of that, there is an effort underway to try and
make psql a little more forgiving. The 8.0 version can work against 7.4
servers, and I'm going to try and keep things relatively portable as we
move forward from 8.0. However, it will never work against 7.2 servers
(too many changes from 7.2->7.3 to make it worth the trouble) and *may*
at some point read 7.3 servers, but that gets less likely as time moves on.

- --
Greg Sabino Mullane ***@turnstep.com
PGP Key: 0x14964AC8 200408281026
-----BEGIN PGP SIGNATURE-----

iD8DBQFBMJaxvJuQZxSWSsgRAp6GAJ9CqChJdRlpL5OLEOHNCLmxvc0NOgCdFD6c
6085Mq0GOiwQV5Fm2PPa2b4=
=H7GW
-----END PGP SIGNATURE-----



---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ***@postgresql.org
Tom Lane
2004-08-28 16:27:58 UTC
Permalink
Post by Cris Carampa
When connecting from a psql client version xyz to a postgresql server
version zyx across the network, what are the rules to follow for
assuring compatibility between different versions?
[snip]
... In general, going from an older psql to a newer server will cause
less problems than going the other way.
One other point is that just connecting and issuing SQL queries should
work, more or less independently of which psql and backend mix you're
using. What is likely to fail is psql's backslash commands, because
those have hard-wired knowledge about the system catalogs, which change
from version to version.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Loading...