Re: [PATCH] Improve tab completion for CREATE DOMAIN without AS

From: Ishjaap Singh <ishjaap(dot)singh07(at)gmail(dot)com>
To: Koshino Taiki <koshino(at)sraoss(dot)co(dot)jp>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [PATCH] Improve tab completion for CREATE DOMAIN without AS
Date: 2026-11-28 15:37:51
Message-ID: CA+Y2BmdnOMx5N0WHD3tH5s28yS-1uZKt4b_Hk0RvuAF6FdMx3A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Taiki,

I tested v1 on master (e87b024bfb8) with GNU readline.

Without AS, CREATE DOMAIN d enu<Tab> now completes the type, and
CREATE DOMAIN d enum1 <Tab><Tab> lists the same clauses as the AS form.
A schema-qualified type works too. The COLLATE change is a real fix:
on master, COLLATE col<Tab> after the base type completed nothing with
or without AS, and the old rule only fired for CREATE DOMAIN d COLLATE,
which the server rejects.

The psql TAP tests pass. Without the tab-complete.in.c change, the test
run times out at the first new CREATE DOMAIN check. pgindent is clean;
pgperltidy would join the check_completion("CH\t", ...) call onto one
line.

Looks good to me.

Regards,
Ishjaap Singh

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrei Lepikhov 2026-11-28 15:39:47 Re: Use local buffer for packed numerics
Previous Message Álvaro Herrera 2026-11-28 15:21:30 Re: logical decoding: removing change_useless_for_repack()