With EXPLAIN (ANALYZE, TIMING OFF), it is back to normal execution speed.
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных