| From: | Koshino Taiki <koshino(at)sraoss(dot)co(dot)jp> |
|---|---|
| To: | Ishjaap Singh <ishjaap(dot)singh07(at)gmail(dot)com> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: [PATCH] Improve tab completion for CREATE DOMAIN without AS |
| Date: | 2026-12-01 05:09:45 |
| Message-ID: | TY7P286MB974944F6041700D274507CD533944E2@TY7P286MB974944.JPNP286.PROD.OUTLOOK.COM |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> 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.
Hi Ishjaap,
Thank you for reviewing and testing the patch, and for marking it
Ready for Committer.
Regards,
Taiki Koshino<koshino(at)sraoss(dot)co(dot)jp>
SRA OSS K.K.
TEL: 03-5979-2701 FAX: 03-5979-2702
URL: https://www.sraoss.co.jp/
________________________________
差出人: Ishjaap Singh <ishjaap(dot)singh07(at)gmail(dot)com>
送信日時: 2026年11月29日 0:37
宛先: Koshino Taiki <koshino(at)sraoss(dot)co(dot)jp>
CC: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
件名: Re: [PATCH] Improve tab completion for CREATE DOMAIN without AS
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kirill Reshke | 2026-12-01 05:13:42 | Re: Doc: Fix BrinOpcInfo members to match the code |
| Previous Message | Koshino Taiki | 2026-12-01 04:59:59 | Re: Proposal: Include CHECK constraint expression in violation error DETAIL |