From: Fujii Masao Date: Sat, 23 May 2026 00:39:58 +0000 (+0900) Subject: psql: Add missing IO option to EXPLAIN tab completion X-Git-Tag: REL_19_BETA1~62 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=2c4bd2bf5700db98be0602854a8b7fa2c16b5f4a;p=thirdparty%2Fpostgresql.git psql: Add missing IO option to EXPLAIN tab completion Commit 681daed9316 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 Reviewed-by: Zhenwei Shang Discussion: https://postgr.es/m/CAAJ6gzGi9gK6nGjsGCch0nFPdd2+odWatTS1uAGwRDPbHkmSVQ@mail.gmail.com --- diff --git a/src/bin/psql/tab-complete.in.c b/src/bin/psql/tab-complete.in.c index 75132528f3a..364546c13e8 100644 --- a/src/bin/psql/tab-complete.in.c +++ b/src/bin/psql/tab-complete.in.c @@ -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");