From: | Karina Litskevich <litskevichkarina(at)gmail(dot)com> |
---|---|
To: | Kirill Reshke <reshkekirill(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Add missing tab completion for ALTER TABLE ADD COLUMN IF NOT EXISTS |
Date: | 2024-11-11 11:48:25 |
Message-ID: | CACiT8iY=sQ0Le7Qa7Ds99AJLYWEykU1hnk5vW6XyauOjr18oHw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sun, Nov 10, 2024 at 3:43 PM Kirill Reshke <reshkekirill(at)gmail(dot)com> wrote:
> > By the way, I suggest adding a completion of "ALTER TYPE ... ALTER
> > ATTRIBUTE ... TYPE" with the list of types while we are here. It should
> > probably go together with v4-0001.
>
> Surprisingly this is already supported in an interesting manner. psql
> will tab-complete everything that end with token "TYPE" with list of
> datatypes:
>
> ```
> reshke=# FOO BAR BAZ
> <tab> *nothing*
> reshke=# FOO BAR BAZ TYPE
> <tab>
> Display all 119 possibilities? (y or n)
> ```
Agreed.
I wrote:
> I hope to look more thoroughly into tab-complete.in.c tomorrow or on
> Monday to see if there are any other problems I can't see at first
> glance. I'll send another mail when I get to do this.
As promised, I looked into the new set of patches more closely. Can't
see any other significant problems. However, you still need to do a
couple of cosmetic changes.
On Sun, Nov 10, 2024 at 3:43 PM Kirill Reshke <reshkekirill(at)gmail(dot)com> wrote:
> > 1) Try to keep comments identical, at least in one piece of code. Right
> > now you have "CREATE MATERIALIZED VIEW <name>" and "CREATE MATERIALIZED
> > VIEW <sth>" within three consecutive lines. I can see there was the
> > same problem before your changes, so it's not exactly your fault. Let's
> > correct it, though.
>
> Ok, sure. I did the correction.
You now have the same problem with "USING <access method>" and
"USING <am_name>" in v5-0004.
Also, make sure you ran pgindent before creating patches. In v5-0004
there are comments that are too long for one line, and there is a line
with a trailing space:
+ else if (Matches("CREATE", "MATERIALIZED", "VIEW", MatchAny, "AS") ||
Other than that, everything looks fine to me.
Best regards,
Karina Litskevich
Postgres Professional: http://postgrespro.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2024-11-11 11:53:45 | Re: Linkify mentions of the primary/subscriber's max_replication_slots |
Previous Message | jian he | 2024-11-11 11:37:50 | Re: Virtual generated columns |