Further to previous message. I've found inconsistencies in case sensitivity of this type in renaming a FOREIGN KEY CONSTRAINT.
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных