Andrzej Zawadzki <zawa...@wp.pl> writes: > I have no idea whats wrong. Looks like planer bad decision.
[ counts... ] You've got nine base relations in that query. I think you need to increase from_collapse_limit and/or join_collapse_limit. regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance