>2) Force PG to drop the merge join via SET ENABLE_MERGEJOIN = FALSE; Actually, it was 312 milliseconds, so it got worse.
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных