mirror of
https://github.com/postgres/postgres.git
synced 2026-06-10 01:00:11 -04:00
psql: Add missing IO option to EXPLAIN tab completion
Commit 681daed931 added EXPLAIN (IO) as a boolean option, but did
not update psql's tab completion to include it. Add IO to both the
option keyword list and the boolean ON/OFF completion.
Author: Afrah Razzak <mypg.afrah@gmail.com>
Reviewed-by: Zhenwei Shang <a934172442@gmail.com>
Discussion: https://postgr.es/m/CAAJ6gzGi9gK6nGjsGCch0nFPdd2+odWatTS1uAGwRDPbHkmSVQ@mail.gmail.com
This commit is contained in:
parent
c37b38806a
commit
2c4bd2bf57
1 changed files with 2 additions and 2 deletions
|
|
@ -4538,8 +4538,8 @@ match_previous_words(int pattern_id,
|
|||
if (ends_with(prev_wd, '(') || ends_with(prev_wd, ','))
|
||||
COMPLETE_WITH("ANALYZE", "VERBOSE", "COSTS", "SETTINGS", "GENERIC_PLAN",
|
||||
"BUFFERS", "SERIALIZE", "WAL", "TIMING", "SUMMARY",
|
||||
"MEMORY", "FORMAT");
|
||||
else if (TailMatches("ANALYZE|VERBOSE|COSTS|SETTINGS|GENERIC_PLAN|BUFFERS|WAL|TIMING|SUMMARY|MEMORY"))
|
||||
"MEMORY", "IO", "FORMAT");
|
||||
else if (TailMatches("ANALYZE|VERBOSE|COSTS|SETTINGS|GENERIC_PLAN|BUFFERS|WAL|TIMING|SUMMARY|MEMORY|IO"))
|
||||
COMPLETE_WITH("ON", "OFF");
|
||||
else if (TailMatches("SERIALIZE"))
|
||||
COMPLETE_WITH("TEXT", "NONE", "BINARY");
|
||||
|
|
|
|||
Loading…
Reference in a new issue