Re: [PATCH]Feature improvement for MERGE tab completion - Mailing list pgsql-hackers

From bt22kawamotok
Subject Re: [PATCH]Feature improvement for MERGE tab completion
Date
Msg-id 7d7eef0f596e449746766ff4fb7c9061@oss.nttdata.com
Whole thread Raw
In response to Re: [PATCH]Feature improvement for MERGE tab completion  (Shinya Kato <Shinya11.Kato@oss.nttdata.com>)
Responses Re: [PATCH]Feature improvement for MERGE tab completion
List pgsql-hackers
> Thanks for updating!
> 
> Compile errors have occurred, so can you fix them?
> And I think we can eliminate similar redundancies in MERGE tab
> completion and I would like you to fix them.
> 
> For example,
> 
>     else if (TailMatches("WHEN", "MATCHED"))
>         COMPLETE_WITH("THEN", "AND");
>     else if (TailMatches("WHEN", "NOT", "MATCHED"))
>         COMPLETE_WITH("THEN", "AND");
> 
> above statement can be converted to the statement below.
> 
>     else if (TailMatches("WHEN", "MATCHED") ||
>              TailMatches("WHEN", "NOT", "MATCHED"))
>         COMPLETE_WITH("THEN", "AND");

Sorry for making such a silly mistake.
I create new path.
Please reviewing.

Kotaro Kawamoto
Attachment

pgsql-hackers by date:

Previous
From: Hamid Akhtar
Date:
Subject: Re: Allow pageinspect's bt_page_stats function to return a set of rows instead of a single row
Next
From: Peter Eisentraut
Date:
Subject: Re: pg_walinspect float4/float8 confusion