From: Bruce Momjian Date: Sat, 16 Aug 2008 00:16:56 +0000 (+0000) Subject: Fix version warning bug in recently applied adjustments to psql startup. X-Git-Tag: recoveryinfrav9~742 X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=c44898ea604c7b26e996cd79fac64f48621fd4a3;p=users%2Fsimon%2Fpostgres.git Fix version warning bug in recently applied adjustments to psql startup. Gregory Stark --- diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 9e6923fea9..291d449ac5 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -1197,10 +1197,10 @@ do_connect(char *dbname, char *user, char *host, char *port) * Replace the old connection with the new one, and update * connection-dependent variables. */ - connection_warnings(); PQsetNoticeProcessor(n_conn, NoticeProcessor, NULL); pset.db = n_conn; SyncVariables(); + connection_warnings(); /* Must be after SyncVariables */ /* Tell the user about the new connection */ if (!pset.quiet)