I did a brief review of the distinct types patch.
Everything looks good to me, but it may need further review by someonewho understands the types system and can interpret the SQL standardbetter than I.
Regards, Jeff Davis