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
@ -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 New Issue
Block a user