The syntax for ALTER DOMAIN IN POSTGRES DDL allows for CHECK condition to be changed provided a named constraint exists.
How should one change a CHECK defined in a domain which does not specify a named constraint
Say the original constraint is as follows
CREATE DOMAIN ref_type_type varchar(5) CHECK (VALUE IN ('00001', '00002', '00003'));
As part of alteration, an additional value '00004' is needed to be added as valid.