diff options
author | Peter Eisentraut | 2011-02-16 21:14:38 +0000 |
---|---|---|
committer | Peter Eisentraut | 2011-02-16 21:15:54 +0000 |
commit | b15fabf997fb3cd5e0680a6ad7576377774aae07 (patch) | |
tree | 04e6dc70986d0974b853c239792f4df51a454fa8 | |
parent | f0053845326e9eba290c78162ef355558cd2fc46 (diff) |
Also process psqlrc when running psql -l
This was previously not very useful, but with many people customizing
the linestyle, it is nice for a consistent appearance.
-rw-r--r-- | src/bin/psql/startup.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/psql/startup.c b/src/bin/psql/startup.c index 4f3815a28a..10713e9b15 100644 --- a/src/bin/psql/startup.c +++ b/src/bin/psql/startup.c @@ -224,8 +224,12 @@ main(int argc, char *argv[]) if (options.action == ACT_LIST_DB) { - int success = listAllDbs(false); + int success; + if (!options.no_psqlrc) + process_psqlrc(argv[0]); + + success = listAllDbs(false); PQfinish(pset.db); exit(success ? EXIT_SUCCESS : EXIT_FAILURE); } |