Nick Hofstede <Nick(dot)Hofstede(at)inventivegroup(dot)com> writes:
> I'm struggling with a query that seems to use a suboptimal query plan.
Try it in 9.2 - this is the same type of join ordering restriction
complained of last week here:
http://archives.postgresql.org/pgsql-performance/2012-09/msg00201.php
regards, tom lane