mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
psql: Fix tab completion for REPACK boolean options
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 <baji.pgdev@gmail.com> Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/CA+fm-RNZpy7MAceR9gSyy833H_uL-fTx0LxO73RnvwEaprpuRA@mail.gmail.com
This commit is contained in:
parent
6b48f5d1a7
commit
e5035950da
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue