Re: [HACKERS] Join Removal/ Vertical Partitioning

2008-08-15 Thread Bruce Momjian
Simon Riggs wrote: > > On Thu, 2008-06-26 at 13:42 -0400, Tom Lane wrote: > > Simon Riggs <[EMAIL PROTECTED]> writes: > > > We can check for removal of a rel by... > > OT comment: I just found a blog about Oracle's optimizermagic, which is > quite interesting. I notice there is a blog there about

Re: [HACKERS] Join Removal/ Vertical Partitioning

2008-08-14 Thread Simon Riggs
On Thu, 2008-08-14 at 09:27 -0400, Robert Haas wrote: > I'm guessing it's this... looks pretty interesting even if not. > > http://optimizermagic.blogspot.com/2008/06/why-are-some-of-tables-in-my-query.html Yes, thanks for copying it in. -- Simon Riggs www.2ndQuadrant.com PostgreSQ

Re: [HACKERS] Join Removal/ Vertical Partitioning

2008-08-14 Thread Robert Haas
I'm guessing it's this... looks pretty interesting even if not. http://optimizermagic.blogspot.com/2008/06/why-are-some-of-tables-in-my-query.html ...Robert -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mail

Re: [HACKERS] Join Removal/ Vertical Partitioning

2008-08-14 Thread Gregory Stark
"Simon Riggs" <[EMAIL PROTECTED]> writes: > On Thu, 2008-06-26 at 13:42 -0400, Tom Lane wrote: >> Simon Riggs <[EMAIL PROTECTED]> writes: >> > We can check for removal of a rel by... > > OT comment: I just found a blog about Oracle's optimizermagic, which is > quite interesting. I notice there is

Re: [HACKERS] Join Removal/ Vertical Partitioning

2008-08-14 Thread Simon Riggs
On Thu, 2008-06-26 at 13:42 -0400, Tom Lane wrote: > Simon Riggs <[EMAIL PROTECTED]> writes: > > We can check for removal of a rel by... OT comment: I just found a blog about Oracle's optimizermagic, which is quite interesting. I notice there is a blog there about join removal, posted about 12 ho

Re: [HACKERS] Join Removal/ Vertical Partitioning

2008-06-29 Thread Simon Riggs
On Fri, 2008-06-27 at 17:50 -0400, Tom Lane wrote: > Simon Riggs <[EMAIL PROTECTED]> writes: > > On Thu, 2008-06-26 at 13:42 -0400, Tom Lane wrote: > >> It might be possible to treat "ignore the RHS" as a join strategy and > >> try to apply it while forming join relations, which would be late enou

Re: [HACKERS] Join Removal/ Vertical Partitioning

2008-06-27 Thread Tom Lane
Simon Riggs <[EMAIL PROTECTED]> writes: > On Thu, 2008-06-26 at 13:42 -0400, Tom Lane wrote: >> It might be possible to treat "ignore the RHS" as a join strategy and >> try to apply it while forming join relations, which would be late enough >> to have all the needed info available. > Oh, actually

Re: [HACKERS] Join Removal/ Vertical Partitioning

2008-06-27 Thread Simon Riggs
On Thu, 2008-06-26 at 13:42 -0400, Tom Lane wrote: > Simon Riggs <[EMAIL PROTECTED]> writes: > > We can check for removal of a rel by > > > 1. inspecting the target list for the query to see if there are rels > > that do not provide any attributes. (We might also use equivalence > > classes to re

Re: [HACKERS] Join Removal/ Vertical Partitioning

2008-06-26 Thread Tom Lane
Simon Riggs <[EMAIL PROTECTED]> writes: > We can check for removal of a rel by > 1. inspecting the target list for the query to see if there are rels > that do not provide any attributes. (We might also use equivalence > classes to recode the targetlist to minimise the numbers of tables > touched,

[HACKERS] Join Removal/ Vertical Partitioning

2008-06-26 Thread Simon Riggs
There are common cases where we want to remove unwanted joins from queries, especially with view and Object Relational Mapping systems such as Hibernate etc.. (I've mentioned this before on -hackers or -perform, but I can't find the links) Typical case is where we have a class that has a subclass