Skip to content

Commit 268c4e9

Browse files
committed
Add tab completion for EXPLAIN (SETTINGS) in psql
Author: Justin Pryzby Reviewed-by: Tatsuro Yamada Discussion: https://postgr.es/m/20190927022051.GC24334@telsasoft.com Backpatch-through: 12
1 parent fb341a7 commit 268c4e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/psql/tab-complete.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2885,9 +2885,9 @@ psql_completion(const char *text, int start, int end)
28852885
* one word, so the above test is correct.
28862886
*/
28872887
if (ends_with(prev_wd, '(') || ends_with(prev_wd, ','))
2888-
COMPLETE_WITH("ANALYZE", "VERBOSE", "COSTS", "BUFFERS",
2889-
"TIMING", "SUMMARY", "FORMAT");
2890-
else if (TailMatches("ANALYZE|VERBOSE|COSTS|BUFFERS|TIMING|SUMMARY"))
2888+
COMPLETE_WITH("ANALYZE", "VERBOSE", "COSTS", "SETTINGS",
2889+
"BUFFERS", "TIMING", "SUMMARY", "FORMAT");
2890+
else if (TailMatches("ANALYZE|VERBOSE|COSTS|SETTINGS|BUFFERS|TIMING|SUMMARY"))
28912891
COMPLETE_WITH("ON", "OFF");
28922892
else if (TailMatches("FORMAT"))
28932893
COMPLETE_WITH("TEXT", "XML", "JSON", "YAML");

0 commit comments

Comments
 (0)