This patch should catch cases where the types in referencing and referenced columns of an fk constraint aren't comparable using '=' at constraint definition time rather than insert/update time.
pgsql-patches by date:
Соглашаюсь с условиями обработки персональных данных