[PATCH v1] Fix tab completion for REINDEX SYSTEM

From: Sho Ito <i(dot)sho(dot)0628(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: [PATCH v1] Fix tab completion for REINDEX SYSTEM
Date: 2026-10-23 13:39:58
Message-ID: CAG7L5+7Hh4f8D2bxgS-wc5RwfGNZvYe7RL8wruUkHYvdjUECqg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

psql currently offers `CONCURRENTLY` after `REINDEX SYSTEM`, although
the backend rejects that combination [1].

The attached patch completes only database names after `REINDEX SYSTEM`,
including when parenthesized options are present.

[1]
https://github.com/postgres/postgres/blob/3138f248cd3de43dd0f96760fc666152ea8a5c37/src/backend/commands/indexcmds.c#L3317-L3321

Kind regards,
Sho Ito

--
=======================================
*Sho Ito (Sean)*

E-mail: i(dot)sho(dot)0628(at)gmail(dot)com
LinkedIn: *https://www.linkedin.com/in/sho-ito-0628/
<https://www.linkedin.com/in/sho-ito-0628/>*
GitHub: https://github.com/sean0628/
=======================================

Attachment Content-Type Size
v1-0001-Fix-tab-completion-for-REINDEX-SYSTEM.patch application/octet-stream 2.1 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Aleksander Alekseev 2026-10-23 13:42:38 Re: [PATCH] Remove unused PageIsPredicateLocked()
Previous Message Andrey Borodin 2026-10-23 13:29:55 Re: Protocol Compression (fourth attempt)