Jens-Wolfhard Schicke <ml+pgsql-performance@xxxxxxx> writes: > Is it possible to have the planner consider the second plan instead of the > first? At the moment, only if you get rid of the inheritance. The planner's not very smart at all when faced with joining inheritance trees. regards, tom lane