Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb15fabf

Browse files
committed
Also process psqlrc when running psql -l
This was previously not very useful, but with many people customizingthe linestyle, it is nice for a consistent appearance.
1 parentf005384 commitb15fabf

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-
intsuccess=listAllDbs(false);
227+
intsuccess;
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)

[8]ページ先頭

©2009-2025 Movatter.jp