Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com> writes:
> Anyway, i will repost the EXPLAIN plans by copying pasting the query, without the analyze part.
Please show EXPLAIN ANALYZE, not just EXPLAIN, results. When
complaining that the planner did the wrong thing, it's not very helpful
to see only its estimates and not reality.
regards, tom lane