pgsql: psql: Fix tab completion for VACUUM option values.

From: Masahiko Sawada <msawada(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: psql: Fix tab completion for VACUUM option values.
Date: 2025-12-24 21:57:51
Message-ID: E1vYWre-002ViH-2G@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

psql: Fix tab completion for VACUUM option values.

Commit 8a3e4011 introduced tab completion for the ONLY option of
VACUUM and ANALYZE, along with some code simplification using
MatchAnyN. However, it caused a regression in tab completion for
VACUUM option values. For example, neither ON nor OFF was suggested
after "VACUUM (VERBOSE". In addition, the ONLY keyword was not
suggested immediately after a completed option list.

Backpatch to v18.

Author: Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp>
Discussion: https://postgr.es/m/20251223021509.19bba68ecbbc70c9f983c2b4@sraoss.co.jp
Backpatch-through: 18

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4e13769004c8b2a337d24060e15f23684d3df98b

Modified Files
--------------
src/bin/psql/tab-complete.in.c | 42 ++++++++++++++++++++++++------------------
1 file changed, 24 insertions(+), 18 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Richard Guo 2025-12-25 03:14:11 pgsql: Fix planner error with SRFs and grouping sets
Previous Message Masahiko Sawada 2025-12-24 21:57:47 pgsql: psql: Fix tab completion for VACUUM option values.