| From: | Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> |
|---|---|
| To: | Tatsuya Kawata <kawatatatsuya0913(at)gmail(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: [Patch]Add tab completion for DELETE ... USING |
| Date: | 2025-12-26 03:37:58 |
| Message-ID: | 0513C4A1-1FCF-45F0-97C4-A54B0B93CF57@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> On Dec 25, 2025, at 23:51, Tatsuya Kawata <kawatatatsuya0913(at)gmail(dot)com> wrote:
>
> Hi,
>
> I noticed that tab completion for DELETE ... USING clause was not implemented. There was a TODO comment in tab-complete.in.c:
>
> /* XXX: implement tab completion for DELETE ... USING */
> The attached patch implements this feature. The following completions are now supported:
>
> DELETE FROM <table> USING <TAB> -> suggests a list of tables
> DELETE FROM <table> USING <table> <TAB> -> suggests AS, WHERE
> DELETE FROM <table> USING <table> AS <alias> <TAB> -> suggests WHERE
> DELETE FROM <table> USING <table> <alias> <TAB> -> suggests WHERE (without AS keyword)
>
> I've also added tests for all these cases in 010_tab_completion.pl.
>
> Regards,
> Tatsuya Kawata
> <v1-0001-Add-tab-completion-for-DELETE-USING.patch>
Overall looks good to me. A very tiny nitpick:
Firs the first case:
```
+# check DELETE ... USING completion
+check_completion(
+ "DELETE FROM tab1 USING my\t",
+ qr/mytab/,
+ "complete DELETE FROM tab USING with table name");
```
Maybe just say “with tab”, because the rest test cases’ messages all say “USING tab”.
Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hayato Kuroda (Fujitsu) | 2025-12-26 03:52:09 | RE: Parallel Apply |
| Previous Message | Hayato Kuroda (Fujitsu) | 2025-12-26 03:20:35 | RE: Parallel Apply |