Add missing tab completion for VACUUM and ANALYZE with ONLY option

Umar Hayat <postgresql.wizard@gmail.com>

From: Umar Hayat <postgresql.wizard@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2025-02-06T10:58:40Z
Lists: pgsql-hackers

Attachments

Hi,
Recently the ONLY option is introduced [1] for VACUUM and ANALYZE
commands. Attach provides improved tab completion for this new option
for both commands.

Along with this also added starting parenthesis "(" auto-complete as
multiple existing commands provide it and it makes it easier to
separate command options (VERBOSE, FREEZE, ... ) from table list.

[1] https://www.postgresql.org/message-id/flat/CADofcAWATx_haD%3DQkSxHbnTsAe6%2Be0Aw8Eh4H8cXyogGvn_kOg%40mail.gmail.com

Regards
-- 
Umar Hayat
Bitnine (https://bitnine.net/)

Commits

  1. psql: Add tab completion for VACUUM and ANALYZE ... ONLY option.