In article <4CBA2BC4.9030105@darrenduncan.net>,
Darren Duncan <darren@darrenduncan.net> writes:
> I would further recommend turning the above into a separate data type,
> especially if you'd otherwise be using that constraint in several
> places, like this ...
FWIW, the shatypes contrib package includes a binary md5 datatype.