From 5cad02452457d7f6f29404411dfe13e6fe8accb7 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 31 Aug 2012 23:28:14 -0400 Subject: psql: Reduce compatibility warning Only warn when connecting to a newer server, since connecting to older servers works pretty well nowadays. Also update the documentation a little about current psql/server compatibility expectations. --- doc/src/sgml/ref/psql-ref.sgml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 4b5e5274e5a..0675a8e17b1 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -3505,14 +3505,24 @@ PSQL_EDITOR_LINENUMBER_ARG='--line ' - psql is only guaranteed to work smoothly - with servers of the same version. That does not mean other combinations - will fail outright, but subtle and not-so-subtle problems might come - up. Backslash commands are particularly likely to fail if the - server is of a newer version than psql itself. However, - backslash commands of the \d family should work with - servers of versions back to 7.4, though not necessarily with servers - newer than psql itself. + psql works best with servers of the same + or an older major version. Backslash commands are particularly likely + to fail if the server is of a newer version than psql + itself. However, backslash commands of the \d family should + work with servers of versions back to 7.4, though not necessarily with + servers newer than psql itself. The general + functionality of running SQL commands and displaying query results + should also work with servers of a newer major version, but this cannot + be guaranteed in all cases. + + + If you want to use psql to connect to several + servers of different major versions, it is recommended that you use the + newest version of psql. Alternatively, you + can keep a copy of psql from each major + version around and be sure to use the version that matches the + respective server. But in practice, this additional complication should + not be necessary. -- cgit v1.2.3