Re: add tab-complete for ALTER DOMAIN ADD...

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: Álvaro Herrera <alvherre(at)kurilemu(dot)de>, Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>
Cc: jian he <jian(dot)universality(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: add tab-complete for ALTER DOMAIN ADD...
Date: 2025-05-12 08:27:41
Message-ID: 7271b80e-e2f6-4807-91fd-d3a9420430b0@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2025/05/11 23:22, Álvaro Herrera wrote:
> On 2025-Apr-29, Dagfinn Ilmari Mannsåker wrote:
>
>> jian he <jian(dot)universality(at)gmail(dot)com> writes:
>
>>> + /* ALTER DOMAIN <sth> ADD */
>>> + else if (Matches("ALTER", "DOMAIN", MatchAny, "ADD"))
>>> + COMPLETE_WITH("CONSTRAINT", "NOT NULL", "CHECK");
>>
>> I think the completion for CHECK should include the opening paren too,
>> since that's required for the expression.
>
> Yeah, we do that elsewhere.
>
>> We could also add completion after CONSTRAINT <name>, like this:
>>
>> else if(Matches("ALTER", "DOMAIN", MatchAny, "ADD", "CONSTRAINT", MatchAny))
>> COMPLETE_WITH("NOT NULL", "CHECK (");
>
> Done that, and pushed.

I have no objection to this commit. However, I had assumed we would
wait to commit changes like this - which aren't bug fixes or
v18-related oversights - until master becomes the development branch
for v19. Maybe I'm missing something..

We can go ahead with this one because it's a small change? Just checking,
since I have a few similar tab-completion improvements patches and
have been holding off until v19 development begins. If it's fine,
I'm thinking of committing them soon as well.

Regards,

--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dmitry Koval 2025-05-12 08:31:04 Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Previous Message Dmitry Dolgov 2025-05-12 08:15:59 Re: queryId constant squashing does not support prepared statements