From 7efd081c4ea58b52e582f80f7f7227551d6c8e2f Mon Sep 17 00:00:00 2001 From: Afrah Razzak Date: Tue, 12 May 2026 14:55:42 -0500 Subject: [PATCH] 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. --- src/bin/psql/tab-complete.in.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/psql/tab-complete.in.c b/src/bin/psql/tab-complete.in.c index 1335479d2aa..a6ba223a1f7 100644 --- a/src/bin/psql/tab-complete.in.c +++ b/src/bin/psql/tab-complete.in.c @@ -4537,8 +4537,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"); -- 2.39.3 (Apple Git-146)