diff options
author | Bruce Momjian <bruce@momjian.us> | 2008-08-16 00:16:56 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2008-08-16 00:16:56 +0000 |
commit | 21cf022fa9ef657fda580ca0eaf24a99b2a19819 (patch) | |
tree | dec9033b2d265dde5dfa178001660e44c59b02f3 /src | |
parent | d4af2a64816ea4639c9614112b0c8a5a3cb4b522 (diff) | |
download | postgresql-21cf022fa9ef657fda580ca0eaf24a99b2a19819.tar.gz postgresql-21cf022fa9ef657fda580ca0eaf24a99b2a19819.zip |
Fix version warning bug in recently applied adjustments to psql startup.
Gregory Stark
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index ec62e33f419..958e134a309 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2008, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.192 2008/07/01 00:08:18 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.193 2008/08/16 00:16:56 momjian Exp $ */ #include "postgres_fe.h" #include "command.h" @@ -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) |