Oleksandr Shulgin <oleksandr.shulgin@zalando.de> writes:
> I did a quick debugging session on this and I believe that the cast_hash
> logic in pl_exec.c is to blame.
Hmm ... thought I'd fixed that in 0fc94a5ba, but apparently there's still
a missed case. Will look, thanks for the report!
regards, tom lane