]> git.ipfire.org Git - thirdparty/postgresql.git/commit
psql: Fix tab completion for VACUUM option values.
authorMasahiko Sawada <msawada@postgresql.org>
Wed, 24 Dec 2025 21:55:32 +0000 (13:55 -0800)
committerMasahiko Sawada <msawada@postgresql.org>
Wed, 24 Dec 2025 21:55:32 +0000 (13:55 -0800)
commit4e13769004c8b2a337d24060e15f23684d3df98b
tree048e2bfb5fac79b32128d7863e9e833fd24f76d7
parent02a0f385fa980c1eb14947936161123b4848fe9b
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@sraoss.co.jp>
Discussion: https://postgr.es/m/20251223021509.19bba68ecbbc70c9f983c2b4@sraoss.co.jp
Backpatch-through: 18
src/bin/psql/tab-complete.in.c