Hi Kirill,
Thanks for the patch. The same crash still happens with the FK equality
operator. Moving it to another schema and dropping the old one during
VALIDATE gives a SIGSEGV in generate_operator_clause(). add_cast_to()
has the same pattern. Maybe fix all three together?
Thanks,
Shihao