The statement COMMENT ON INDEX object_name IS '...' does not fail if object_name is a table constraint. However, it does not seem to have any effect. I think the statement should either fail or create the respective comment.
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных