Re: Tab completion for "ALTER TYPE typename SET" and rearranged "Alter TYPE typename RENAME"

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: vignesh C <vignesh21@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-08-14T10:11:11Z
Lists: pgsql-hackers
On Sun, Aug 14, 2022 at 08:25:01AM +0530, vignesh C wrote:
> Attached patch has the changes for the same. Thoughts?
>
> a) Add tab completion for "ALTER TYPE typename SET" was missing.

Why not.  I can also note that CREATE TYPE lists all the properties
that can be set to a new type.  We could bother adding these for ALTER
TYPE, perhaps?

> b) Tab completion for "ALTER TYPE <sth> RENAME VALUE" was not along with tab
> completion of "ALTER TYPE" commands, it was present after "ALTER GROUP
> <foo>", rearranged "ALTER TYPE <sth> RENAME VALUE", so that it is along with
> "ALTER TYPE" commands.

Yeah, no objections to keep that grouped.
--
Michael

Commits

  1. Improve tab completion of ALTER TYPE in psql