pgsql: Add tab-complete for ALTER DOMAIN ADD [CONSTRAINT]

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add tab-complete for ALTER DOMAIN ADD [CONSTRAINT]
Date: 2025-05-11 14:19:38
Message-ID: E1uE7Wk-001Do7-1i@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add tab-complete for ALTER DOMAIN ADD [CONSTRAINT]

We can add tab-completion with "CHECK (" and "NOT NULL" after ALTER
DOMAIN ADD [CONSTRAINT].

ALTER DOMAIN dom ADD -> CHECK (
ALTER DOMAIN dom ADD -> NOT NULL
ALTER DOMAIN dom ADD -> CONSTRAINT
ALTER DOMAIN dom ADD CONSTRAINT nm -> CHECK (
ALTER DOMAIN dom ADD CONSTRAINT nm -> NOT NULL

Author: jian he <jian(dot)universality(at)gmail(dot)com>
Author: Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>
Discussion: https://postgr.es/m/CACJufxG_f6LzAT_McC-kKmQWpuWnOYKyNBw8Kv3xzTjPqmeHcA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/dbf42b84ac7b4e1dfd1ac6e618e247100b6aa08b

Modified Files
--------------
src/bin/psql/tab-complete.in.c | 6 ++++++
1 file changed, 6 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2025-05-13 04:41:52 pgsql: Fix the race condition in the test added by 7c99dc587.
Previous Message Álvaro Herrera 2025-05-11 13:52:57 pgsql: Fix comment of tsquerysend()