Re: Add missing tab completion for ALTER TABLE ADD COLUMN IF NOT EXISTS

From: Kirill Reshke <reshkekirill(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Add missing tab completion for ALTER TABLE ADD COLUMN IF NOT EXISTS
Date: 2024-11-04 11:50:50
Message-ID: CALdSSPiA2B+68ABFaWg-KgSHSD9O=MAYOoEfLK9f_adGCib28w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 1 Nov 2024 at 15:43, Kirill Reshke <reshkekirill(at)gmail(dot)com> wrote:
>
> Hi hackers!
>
> I have been working on cloudberry/greenplum tab completion features,
> and I spotted that the postgres version of psql does not tab-complete
> ALTER TABLE ADD COLUMN IF NOT EXISTS pattern.
> So, I propose to support this.
>
> --
> Best regards,
> Kirill Reshke
Hi, I spotted another missing option:

CREATE TEMP TABLE <name> (...) does not complete with USING.
I suspect the reason is that commit 4cba9c2, which added this tab
completion, was before TAM support.

So, sending this enhancement (v3-0003) along with two other patches.

--
Best regards,
Kirill Reshke

Attachment Content-Type Size
v3-0002-Enhance-tab-completion-to-ALTER-TYPE-ADD-DROP-ATT.patch application/octet-stream 1.6 KB
v3-0001-Add-missing-psql-tab-completion-for-som-ALTER-TAB.patch application/octet-stream 2.0 KB
v3-0003-Add-missing-tab-completion-for-CREATE-TEMP-TABLE-.patch application/octet-stream 1.1 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amul Sul 2024-11-04 12:17:27 Re: NOT ENFORCED constraint feature
Previous Message Dean Rasheed 2024-11-04 11:33:51 Re: general purpose array_sort