Skip to content

Commit b15fabf

Browse files
committed
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.
1 parent f005384 commit b15fabf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bin/psql/startup.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,12 @@ main(int argc, char *argv[])
224224

225225
if (options.action == ACT_LIST_DB)
226226
{
227-
int success = listAllDbs(false);
227+
int success;
228228

229+
if (!options.no_psqlrc)
230+
process_psqlrc(argv[0]);
231+
232+
success = listAllDbs(false);
229233
PQfinish(pset.db);
230234
exit(success ? EXIT_SUCCESS : EXIT_FAILURE);
231235
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy