Index: src/bin/psql/startup.c =================================================================== RCS file: /cvsroot/pgsql/src/bin/psql/startup.c,v retrieving revision 1.120 diff -c -c -r1.120 startup.c *** src/bin/psql/startup.c 25 Jul 2005 17:17:41 -0000 1.120 --- src/bin/psql/startup.c 31 Aug 2005 21:31:22 -0000 *************** *** 8,13 **** --- 8,14 ---- #include "postgres_fe.h" #include + #include #ifndef WIN32 #include *************** *** 312,317 **** --- 313,326 ---- if (!QUIET() && !pset.notty) { + if (pset.sversion / 100 != atoi(PG_VERSION) * 100 + + (strchr(PG_VERSION, '.')[1] - '0')) + printf(_("You are connected to a server with major version %d.%d, but your\n" + "%s client is major version %d.%d. Informational backslash commands,\n" + "like \\d, might not work properly.\n\n"), + pset.sversion / 10000, (pset.sversion / 100) % 10, + pset.progname, atoi(PG_VERSION), strchr(PG_VERSION, '.')[1] - '0'); + printf(_("Welcome to %s %s, the PostgreSQL interactive terminal.\n\n" "Type: \\copyright for distribution terms\n" " \\h for help with SQL commands\n"