TAB completion for ALTER TABLE ... ALTER CONSTRAINT ... ENFORCED

From: Kirill Reshke <reshkekirill(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: TAB completion for ALTER TABLE ... ALTER CONSTRAINT ... ENFORCED
Date: 2025-08-11 13:20:31
Message-ID: CALdSSPj+OS5N+dAy+s0J6tG153drc6iCktFefU=+8xLjFH9HZA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

I do understand that the psql tab complete feature is not designed for
full PostgreSQL's grammar support, yet this particular case is
relatively simple to support. So, should we add this feature?

Please let me know your thoughts.

[0] https://www.postgresql.org/message-id/CACJufxFY%3DGkptsiH8X%3DVdyYAnNE_%3Du5j6WyDufTste6CuzRvnw%40mail.gmail.com

--
Best regards,
Kirill Reshke

Attachment Content-Type Size
v1-0001-Add-tab-completion-for-ALTER-TABLE-xxx-ALTER-CONT.patch application/octet-stream 1.3 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Matheus Alcantara 2025-08-11 13:41:08 Re: LISTEN/NOTIFY bug: VACUUM sets frozenxid past a xid in async queue
Previous Message Tomas Vondra 2025-08-11 13:09:45 Re: [PATCH] Let's get rid of the freelist and the buffer_strategy_lock