When using a signed comparison != does not behave like <> if the right hand side comparator is signed and there is no space between the comparator and the sign
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных