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:
Peter Eisentraut 2011-02-16 23:14:38 +02:00
parent f005384532
commit b15fabf997

View File

@ -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);
}