Andreas Pflug <Andreas.Pflug@web.de> writes:
> it was a cvs diff, should I upload the whole source?
diff -c is the standard format for patch submissions.
Some people use diff -u, but I find that less readable.
> I wasn't able to force a T_CoerceToDomain, and only got T_RelabelType
> with simple variables.
Try (foo || bar)::varchar to see an example of a relabel on a nontrivial
input expression. For CoerceToDomain, try creating a domain over text
and then coerce to that.
regards, tom lane