Skip to content

Commit 4b011ca

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 bb0e3ce commit 4b011ca

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
@@ -2939,9 +2939,9 @@ psql_completion(const char *text, int start, int end)
29392939
* one word, so the above test is correct.
29402940
*/
29412941
if (ends_with(prev_wd, '(') || ends_with(prev_wd, ','))
2942-
COMPLETE_WITH("ANALYZE", "VERBOSE", "COSTS", "BUFFERS",
2943-
"TIMING", "SUMMARY", "FORMAT");
2944-
else if (TailMatches("ANALYZE|VERBOSE|COSTS|BUFFERS|TIMING|SUMMARY"))
2942+
COMPLETE_WITH("ANALYZE", "VERBOSE", "COSTS", "SETTINGS",
2943+
"BUFFERS", "TIMING", "SUMMARY", "FORMAT");
2944+
else if (TailMatches("ANALYZE|VERBOSE|COSTS|SETTINGS|BUFFERS|TIMING|SUMMARY"))
29452945
COMPLETE_WITH("ON", "OFF");
29462946
else if (TailMatches("FORMAT"))
29472947
COMPLETE_WITH("TEXT", "XML", "JSON", "YAML");

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