Re: [PATCH]Feature improvement for MERGE tab completion

2023-07-04 Thread Daniel Gustafsson
> On 28 Mar 2023, at 20:55, Gregory Stark (as CFM) wrote: > > It looks like this remaining work isn't going to happen this CF and > therefore this release. There hasn't been an update since January when > Dean Rasheed posted a review. > > Unless there's any updates soon I'll move this on to the

Re: [PATCH]Feature improvement for MERGE tab completion

2023-03-28 Thread Gregory Stark (as CFM)
Ah, another thread with a bouncing email address... Please respond to to thread from this point to avoid bounces. -- Gregory Stark As Commitfest Manager

Re: [PATCH]Feature improvement for MERGE tab completion

2023-03-28 Thread Gregory Stark (as CFM)
It looks like this remaining work isn't going to happen this CF and therefore this release. There hasn't been an update since January when Dean Rasheed posted a review. Unless there's any updates soon I'll move this on to the next commitfest or mark it returned with feedback. -- Gregory Stark

Re: [PATCH]Feature improvement for MERGE tab completion

2023-01-10 Thread Dean Rasheed
On Tue, 3 Jan 2023 at 12:30, vignesh C wrote: > > The patch does not apply on top of HEAD as in [1], please post a rebased > patch: > This is because 0001 has been committed. Re-uploading 0002, to keep the CF-bot happy. Reviewing 0002... I'm not entirely convinced that the PartialMatches()

Re: [PATCH]Feature improvement for MERGE tab completion

2023-01-03 Thread vignesh C
On Wed, 21 Sept 2022 at 10:55, Fujii Masao wrote: > > > > On 2022/09/21 0:51, Alvaro Herrera wrote: > > The rules starting at line 4111 make me a bit nervous, since nowhere > > we're restricting them to operating only on MERGE lines. I don't think > > it's a real problem since USING is not

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-21 Thread Alvaro Herrera
On 2022-Sep-21, Fujii Masao wrote: > How about adding something like PartialMatches() that checks whether > the keywords are included in the input string or not? If so, we can restrict > some tab-completion rules to operating only on MERGE, as follows. I attached > the WIP patch (0002 patch) that

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-20 Thread Fujii Masao
On 2022/09/21 0:51, Alvaro Herrera wrote: The rules starting at line 4111 make me a bit nervous, since nowhere we're restricting them to operating only on MERGE lines. I don't think it's a real problem since USING is not terribly common anyway. Likewise for the ones with WHEN [NOT] MATCHED.

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-20 Thread Alvaro Herrera
On 2022-Sep-18, Fujii Masao wrote: > The tab-completion code for MERGE was added in the middle of that for LOCK > TABLE. > This would be an oversight of the commit that originally supported > tab-completion > for MERGE. I fixed this issue. Argh, thanks. > "MERGE" was tab-completed with just

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-17 Thread Fujii Masao
On 2022/09/16 11:46, bt22kawamotok wrote: Thanks for updating. +    COMPLETE_WITH("UPDATE", "DELETE", "DO NOTHING"); "UPDATE" is always followed by "SET",  so why not complement it with "UPDATE SET"? Thanks for reviewing. That's a good idea! I create new patch v7. Thanks for updating

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-15 Thread bt22kawamotok
Thanks for updating. + COMPLETE_WITH("UPDATE", "DELETE", "DO NOTHING"); "UPDATE" is always followed by "SET", so why not complement it with "UPDATE SET"? Thanks for reviewing. That's a good idea! I create new patch v7. Regards, Kotaro Kawamotodiff --git

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-14 Thread Shinya Kato
On 2022-09-14 18:12, bt22kawamotok wrote: I fixed it in v6. Thanks for updating. + COMPLETE_WITH("UPDATE", "DELETE", "DO NOTHING"); "UPDATE" is always followed by "SET", so why not complement it with "UPDATE SET"? -- Regards, -- Shinya Kato Advanced Computing Technology

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-14 Thread bt22kawamotok
+ else if (TailMatches("MERGE", "INTO", MatchAny, "USING") || +TailMatches("MERGE", "INTO", MatchAny, MatchAny, "USING") || +TailMatches("MERGE", "INTO", MatchAny, "AS", MatchAny, "USING"))

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-14 Thread Fujii Masao
On 2022/09/14 14:08, bt22kawamotok wrote: When I tried to apply this patch, I got the following warning, please fix it. Other than that, I think everything is fine. $ git apply fix_tab_completion_merge_v4.patch fix_tab_completion_merge_v4.patch:38: trailing whitespace.     else if

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-13 Thread bt22kawamotok
When I tried to apply this patch, I got the following warning, please fix it. Other than that, I think everything is fine. $ git apply fix_tab_completion_merge_v4.patch fix_tab_completion_merge_v4.patch:38: trailing whitespace. else if (TailMatches("USING", MatchAny, "ON", MatchAny) ||

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-12 Thread Shinya Kato
On 2022-09-12 18:20, bt22kawamotok wrote: Other than this correction, the parts that can be put together in OR were corrected in fix_tab_completion_merge_v4.patch. When I tried to apply this patch, I got the following warning, please fix it. Other than that, I think everything is fine. $

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-12 Thread bt22kawamotok
Other than this correction, the parts that can be put together in OR were corrected in fix_tab_completion_merge_v4.patch. Kotaro Kawamotodiff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 62a39779b9..8b498f6a86 100644 --- a/src/bin/psql/tab-complete.c +++

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-12 Thread bt22kawamotok
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");

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-12 Thread Shinya Kato
On 2022-09-12 15:53, bt22kawamotok wrote: else if (TailMatches("USING", MatchAny, "ON", MatchAny, "WHEN")) COMPLETE_WITH("MATCHED", "NOT MATCHED"); else if (TailMatches("USING", MatchAny, "AS", MatchAny, "ON", MatchAny, "WHEN"))

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-12 Thread bt22kawamotok
else if (TailMatches("USING", MatchAny, "ON", MatchAny, "WHEN")) COMPLETE_WITH("MATCHED", "NOT MATCHED"); else if (TailMatches("USING", MatchAny, "AS", MatchAny, "ON", MatchAny, "WHEN")) COMPLETE_WITH("MATCHED", "NOT MATCHED"); else if

Re: [PATCH]Feature improvement for MERGE tab completion

2022-09-09 Thread Shinya Kato
On 2022-09-09 11:18, bt22kawamotok wrote: I created a patch for improving MARGE tab completion. Currently there is a problem with "MERGE INTO dst as d Using src as s ON d.key = s.key WHEN " is typed, "MATCHED" and "NOT MATCHED" is not completed. There is also a problem that typing "MERGE INTO a

[PATCH]Feature improvement for MERGE tab completion

2022-09-08 Thread bt22kawamotok
Hi! I created a patch for improving MARGE tab completion. Currently there is a problem with "MERGE INTO dst as d Using src as s ON d.key = s.key WHEN " is typed, "MATCHED" and "NOT MATCHED" is not completed. There is also a problem that typing "MERGE INTO a AS " completes "USING". This patch