Skip to content

Commit 25c9de4

Browse files
committed
In psql, run .psqlrc _after_ printing warnings and banner.
1 parent dc02a48 commit 25c9de4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/bin/psql/startup.c

Lines changed: 6 additions & 4 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/startup.c,v 1.149 2008/07/01 00:08:18 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/startup.c,v 1.150 2008/07/18 17:19:55 momjian Exp $
77
*/
88
#include "postgres_fe.h"
99

@@ -281,12 +281,14 @@ main(int argc, char *argv[])
281281
*/
282282
else
283283
{
284+
connection_warnings();
285+
if (!pset.quiet && !pset.notty)
286+
printf(_("Type \"help\" for help.\n"));
284287
if (!options.no_psqlrc)
285288
process_psqlrc(argv[0]);
286-
287-
connection_warnings();
289+
/* output newline here because .psqlrc might output something */
288290
if (!pset.quiet && !pset.notty)
289-
printf(_("Type \"help\" for help.\n\n"));
291+
printf("\n");
290292
if (!pset.notty)
291293
initializeInput(options.no_readline ? 0 : 1);
292294
if (options.action_string) /* -f - was used */

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