>All 3 plans have crappy estimates. > >Run ANALYZE in production, then send another explain analyze (as an >attachment please, to avoid linewrap). > > > Er, no other possible answer except Rod's :-)
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных