These patches should fix check constraints not inheriting when added by alter table add constraint. The first file patches backend/commands/command.c and the latter is a patch to the alter table regression test.
pgsql-patches by date:
Соглашаюсь с условиями обработки персональных данных