Much better...
http://explain.depesz.com/s/uFi
--View this message in context: http://postgresql.1045698.n5.nabble.com/Slow-query-where-am-I-going-wrong-tp5730015p5730145.htmlSent from the PostgreSQL - performance mailing list archive at Nabble.com.