From e5035950dab7fdce23185f21e96b4cc8f16d58e6 Mon Sep 17 00:00:00 2001 From: Fujii Masao Date: Fri, 15 May 2026 14:24:45 +0900 Subject: [PATCH] psql: Fix tab completion for REPACK boolean options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, tab completion for REPACK parenthesized boolean options (ANALYZE, CONCURRENTLY, and VERBOSE) did not suggest the boolean values ON and OFF, unlike VACUUM. This commit fixes the issue by adding ON/OFF completion for those options. Author: Baji Shaik Reviewed-by: Álvaro Herrera Reviewed-by: Fujii Masao Discussion: https://postgr.es/m/CA+fm-RNZpy7MAceR9gSyy833H_uL-fTx0LxO73RnvwEaprpuRA@mail.gmail.com --- src/bin/psql/tab-complete.in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/psql/tab-complete.in.c b/src/bin/psql/tab-complete.in.c index 724323ee5f3..75132528f3a 100644 --- a/src/bin/psql/tab-complete.in.c +++ b/src/bin/psql/tab-complete.in.c @@ -5250,7 +5250,7 @@ match_previous_words(int pattern_id, */ if (ends_with(prev_wd, '(') || ends_with(prev_wd, ',')) COMPLETE_WITH("ANALYZE", "CONCURRENTLY", "VERBOSE"); - else if (TailMatches("ANALYZE", "CONCURRENTLY", "VERBOSE")) + else if (TailMatches("ANALYZE|CONCURRENTLY|VERBOSE")) COMPLETE_WITH("ON", "OFF"); }