I FOUND IT! A second trigger that doesn't belong...... OK, we're set now, and thanks for showing me some ways to check what the planner is up to. Is there a way of seeing whatthe triggers will do?
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных