On Sun, Nov 10, 2024 at 3:43 PM Kirill Reshke <reshkekir...@gmail.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 <reshkekir...@gmail.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/