projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8af14ff
)
In psql, run .psqlrc _after_ printing warnings and banner.
author
Bruce Momjian
<bruce@momjian.us>
Fri, 18 Jul 2008 17:19:55 +0000
(17:19 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Fri, 18 Jul 2008 17:19:55 +0000
(17:19 +0000)
src/bin/psql/startup.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/startup.c
b/src/bin/psql/startup.c
index fdf65a55fc21971dd1919caac6b35a2ed47fa79c..f7b75de8efca4fad33a9a60d1ebdfc4a54951a8c 100644
(file)
--- 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 */