diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-09-27 12:53:43 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-09-27 12:53:43 +0900 |
commit | 4b011cad272e997935eb8d80ab741a40b395fdf5 (patch) | |
tree | 5b67d3038de121a6db9543fc133cc0738ce7c811 | |
parent | bb0e3ce8eb074cef7a88c20bfc34f7e0346312b1 (diff) | |
download | postgresql-4b011cad272e997935eb8d80ab741a40b395fdf5.tar.gz postgresql-4b011cad272e997935eb8d80ab741a40b395fdf5.zip |
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
-rw-r--r-- | src/bin/psql/tab-complete.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index cb126682764..e00dbab5aa1 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -2939,9 +2939,9 @@ psql_completion(const char *text, int start, int end) * one word, so the above test is correct. */ if (ends_with(prev_wd, '(') || ends_with(prev_wd, ',')) - COMPLETE_WITH("ANALYZE", "VERBOSE", "COSTS", "BUFFERS", - "TIMING", "SUMMARY", "FORMAT"); - else if (TailMatches("ANALYZE|VERBOSE|COSTS|BUFFERS|TIMING|SUMMARY")) + COMPLETE_WITH("ANALYZE", "VERBOSE", "COSTS", "SETTINGS", + "BUFFERS", "TIMING", "SUMMARY", "FORMAT"); + else if (TailMatches("ANALYZE|VERBOSE|COSTS|SETTINGS|BUFFERS|TIMING|SUMMARY")) COMPLETE_WITH("ON", "OFF"); else if (TailMatches("FORMAT")) COMPLETE_WITH("TEXT", "XML", "JSON", "YAML"); |