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

Commitbaf048d

Browse files
committed
Improve tab completion for \ef.
Andrew Gierth
1 parent44ab6cd commitbaf048d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.182 2009/04/06 15:50:59 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.183 2009/04/08 04:05:16 momjian Exp $
77
*/
88

99
/*----------------------------------------------------------------------
@@ -630,7 +630,7 @@ psql_completion(char *text, int start, int end)
630630
"\\d","\\da","\\db","\\dc","\\dC","\\dd","\\dD","\\des","\\deu","\\dew","\\df",
631631
"\\dF","\\dFd","\\dFp","\\dFt","\\dg","\\di","\\dl",
632632
"\\dn","\\do","\\dp","\\ds","\\dS","\\dt","\\dT","\\dv","\\du",
633-
"\\e","\\echo","\\encoding",
633+
"\\e","\\echo","\\ef","\\encoding",
634634
"\\f","\\g","\\h","\\help","\\H","\\i","\\l",
635635
"\\lo_import","\\lo_export","\\lo_list","\\lo_unlink",
636636
"\\o","\\p","\\password","\\prompt","\\pset","\\q","\\qecho","\\r",
@@ -2218,6 +2218,9 @@ psql_completion(char *text, int start, int end)
22182218
elseif (strncmp(prev_wd,"\\d",strlen("\\d"))==0)
22192219
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tisv,NULL);
22202220

2221+
elseif (strcmp(prev_wd,"\\ef")==0)
2222+
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_functions,NULL);
2223+
22212224
elseif (strcmp(prev_wd,"\\encoding")==0)
22222225
COMPLETE_WITH_QUERY(Query_for_list_of_encodings);
22232226
elseif (strcmp(prev_wd,"\\h")==0||strcmp(prev_wd,"\\help")==0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp