Paul Caskey <paul(at)nmxs(dot)com> writes:> This query takes 206 seconds:> [snip]> If I change the last line to this, it takes 1 second:
What does EXPLAIN show for these queries?
regards, tom lane