Is there some code within Postgres that resets/removes the signals in case a query hits any error?
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных