Tom Lane wrote:
I think it might be better to fix the problem in pull_up_union_leaf_queries instead; given that it wasn't broken till recently, I think it's arguably that function's fault.
Not sure what you mean. pull_up_union_leaf_queries was introduced at the same time as the rest of the logic to pull up UNION ALL subqueries, in 8.2, and has been broken ever since.
-- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs