Re: PG 8.2beta reordering working for this case?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kyle Bateman <kyle(at)actarg(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: PG 8.2beta reordering working for this case?
Date: 2006-10-08 17:49:31
Message-ID: 25779.1160329771@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Kyle Bateman <kyle(at)actarg(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Dirk Jagdmann 2006-10-08 21:04:02 optimal insert
Previous Message Kyle Bateman 2006-10-08 01:00:44 PG 8.2beta reordering working for this case?