Skip to content

Commit 21cf022

Browse files
committed
Fix version warning bug in recently applied adjustments to psql startup.
Gregory Stark
1 parent d4af2a6 commit 21cf022

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/command.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.192 2008/07/01 00:08:18 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.193 2008/08/16 00:16:56 momjian Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "command.h"
@@ -1197,10 +1197,10 @@ do_connect(char *dbname, char *user, char *host, char *port)
11971197
* Replace the old connection with the new one, and update
11981198
* connection-dependent variables.
11991199
*/
1200-
connection_warnings();
12011200
PQsetNoticeProcessor(n_conn, NoticeProcessor, NULL);
12021201
pset.db = n_conn;
12031202
SyncVariables();
1203+
connection_warnings(); /* Must be after SyncVariables */
12041204

12051205
/* Tell the user about the new connection */
12061206
if (!pset.quiet)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy