Re: PG 8.2beta reordering working for this case? - Mailing list pgsql-sql

From Tom Lane
Subject Re: PG 8.2beta reordering working for this case?
Date
Msg-id 25779.1160329771@sss.pgh.pa.us
Whole thread Raw
In response to PG 8.2beta reordering working for this case?  (Kyle Bateman <kyle@actarg.com>)
Responses Re: PG 8.2beta reordering working for this case?
List pgsql-sql
Kyle Bateman <kyle@actarg.com> writes:
> Is there a way to make the optimizer do this?

Sorry, that's not happening for 8.2.  Consider using a union all (not
union) across the subledg_N tables directly and then joining to that.
That boils down to being a partitioning case and I think probably will
be covered by the 8.2 improvements.  There isn't any understanding of
how to commute joins and unions though ... (offhand I'm not even sure
of the conditions under which such a thing would be safe).
        regards, tom lane


pgsql-sql by date:

Previous
From: Kyle Bateman
Date:
Subject: PG 8.2beta reordering working for this case?
Next
From: "Dirk Jagdmann"
Date:
Subject: optimal insert