diff options
author | Bruce Momjian | 2008-07-18 17:19:55 +0000 |
---|---|---|
committer | Bruce Momjian | 2008-07-18 17:19:55 +0000 |
commit | 3b30c5f0bca4dfa0f5e42dee5e7722d0793c7c34 (patch) | |
tree | 56eddfa50469ca2207e8420778411a7659d46b0a | |
parent | 8af14ffab6e5ec11faac41fd68f503f0898f7801 (diff) |
In psql, run .psqlrc _after_ printing warnings and banner.
-rw-r--r-- | src/bin/psql/startup.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bin/psql/startup.c b/src/bin/psql/startup.c index fdf65a55fc..f7b75de8ef 100644 --- a/src/bin/psql/startup.c +++ b/src/bin/psql/startup.c @@ -281,12 +281,14 @@ main(int argc, char *argv[]) */ else { + connection_warnings(); + if (!pset.quiet && !pset.notty) + printf(_("Type \"help\" for help.\n")); if (!options.no_psqlrc) process_psqlrc(argv[0]); - - connection_warnings(); + /* output newline here because .psqlrc might output something */ if (!pset.quiet && !pset.notty) - printf(_("Type \"help\" for help.\n\n")); + printf("\n"); if (!pset.notty) initializeInput(options.no_readline ? 0 : 1); if (options.action_string) /* -f - was used */ |