Filter:

Commits on July 19, 2009

Commits2 commits of which 1 backported
0Author
2Committer
0Reviewer
0Reported by
0Co-author
CreditCommitBranchesThread(s)Committed
CommitterRewrite GEQO's gimme_tree function so that it always finds a legal join sequence, even when the input "tour" doesn't lead directly to such a sequence. The stack logic that was added in 2004 only supported cases where relations that had to be joined to each other (due to join order restrictions) were adjacent in the tour. However, relying on a random search to figure that out is tremendously inefficient in large join problems, and could even fail completely (leading to "failed to make a valid plan" errors) if random_init_pool ran out of patience. It seems better to make the tour-to-plan transformation a little bit fuzzier so that every tour can form a legal plan, even though this means that apparently different tours will sometimes yield the same plan.
400e2c93
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+15 more
No linked threadJul 19, 2009
CommitterBackportedFix a thinko in join_is_legal: when we decide we can implement a semijoin by unique-ifying the RHS and then inner-joining to some other relation, that is not grounds for violating the RHS of some other outer join. Noticed while regression-testing new GEQO code, which will blindly follow any path that join_is_legal says is legal, and then complain later if that leads to a dead end.
a43b190e
master8.5alpha1REL_19_STABLE8.5alpha1REL_18_STABLE8.5alpha1REL_17_STABLE8.5alpha1REL_16_STABLE8.5alpha1REL_15_STABLE8.5alpha1REL_14_STABLE8.5alpha1REL_13_STABLE8.5alpha1+16 more
No linked threadJul 19, 2009