| From: | Roman Khapov <rkhapov(at)yandex-team(dot)ru> |
|---|---|
| To: | Kirill Reshke <reshkekirill(at)gmail(dot)com> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: TAB completion for ALTER TABLE ... ALTER CONSTRAINT ... ENFORCED |
| Date: | 2025-12-29 15:13:05 |
| Message-ID: | FDAC79A9-6DB4-4C17-9B46-0A93DAAB5262@yandex-team.ru |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> On 11 Aug 2025, at 18:20, Kirill Reshke <reshkekirill(at)gmail(dot)com> wrote:
>
> Hi hackers!
>
> While looking at [0] I noticed that current psql tab-complete lacks support for
>
> ALTER TABLE ... ALTER CONSTRAINT ... [NOT] ENFORCED and
>
> ALTER TABLE ... ALTER CONSTRAINT ... [NO] INHERIT
>
> patterns.
Hi!
> COMPLETE_WITH("ENFORCED", "NOT ENFORCED", "NO INHERIT", "INHERIT");
According to gram.y there might be DEFERRABLE and NOT DEFERRABLE, INITIALLY IMMEDIATE and INITIALLY DEFERRED (NOT VALID is acceptable by rules but not by the action)
Maybe we can add them too? If so, i attached v2 patch with this options added.
--
Best regards,
Roman Khapov
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-Add-tab-completion-for-ALTER-TABLE-xxx-ALTER-CONT.patch | application/octet-stream | 1.5 KB |
| unknown_filename | text/plain | 2 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Roman Khapov | 2025-12-29 15:47:58 | [PATCH] Fix escaping for '\' and '"' in pageinspect for gist |
| Previous Message | Nitin Jadhav | 2025-12-29 15:09:08 | Re: Change checkpoint‑record‑missing PANIC to FATAL |