From b15fabf997fb3cd5e0680a6ad7576377774aae07 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 16 Feb 2011 23:14:38 +0200 Subject: [PATCH] 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. --- src/bin/psql/startup.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } -- 2.40.0