Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit25c9de4

Browse files
committed
In psql, run .psqlrc _after_ printing warnings and banner.
1 parentdc02a48 commit25c9de4

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)

[8]ページ先頭

©2009-2025 Movatter.jp