mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
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.
This commit is contained in:
@ -1694,8 +1694,8 @@ connection_warnings(bool in_startup)
|
||||
else if (in_startup)
|
||||
printf("%s (%s)\n", pset.progname, PG_VERSION);
|
||||
|
||||
if (pset.sversion / 100 != client_ver / 100)
|
||||
printf(_("WARNING: %s version %d.%d, server version %d.%d.\n"
|
||||
if (pset.sversion / 100 > client_ver / 100)
|
||||
printf(_("WARNING: %s major version %d.%d, server major version %d.%d.\n"
|
||||
" Some psql features might not work.\n"),
|
||||
pset.progname, client_ver / 10000, (client_ver / 100) % 100,
|
||||
pset.sversion / 10000, (pset.sversion / 100) % 100);
|
||||
|
Reference in New Issue
Block a user