mirror of
https://github.com/postgres/postgres.git
synced 2026-04-22 06:37:06 -04:00
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.
This commit is contained in:
parent
f005384532
commit
b15fabf997
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue