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