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

Commit8019b5a

Browse files
committed
Improve psql's tab completion for \l.
Offer a list of database names; formerly no help was offered.Ian Barwick, reviewed by Gerdan SantosPatch: <5724132E.1030804@2ndquadrant.com>
1 parent49917db commit8019b5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/bin/psql/tab-complete.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3033,6 +3033,8 @@ psql_completion(const char *text, int start, int end)
30333033
COMPLETE_WITH_QUERY(Query_for_list_of_encodings);
30343034
elseif (TailMatchesCS1("\\h")||TailMatchesCS1("\\help"))
30353035
COMPLETE_WITH_LIST(sql_commands);
3036+
elseif (TailMatchesCS1("\\l*")&& !TailMatchesCS1("\\lo*"))
3037+
COMPLETE_WITH_QUERY(Query_for_list_of_databases);
30363038
elseif (TailMatchesCS1("\\password"))
30373039
COMPLETE_WITH_QUERY(Query_for_list_of_roles);
30383040
elseif (TailMatchesCS1("\\pset"))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp