Pavel Stehule writes:
increase statistics on columns. The estimation is totally out.
Stats when I ran the above was at 250. Will try 500. -- Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance