On Sat, 4 Jun 2016 Andrew Beverley <andy(at)andybev(dot)com> wrote:
> When I run EXPLAIN ANALYZE, I see that the actual query is scanning
> significantly more rows for the join than was estimated. There is also
> a huge number of loops for the joins. Why is this, and is there an
> easy fix?
I should have said: PostgreSQL version 9.4.6 running on Debian 8.4