Commit Graph

102 Commits (7df2c1f8daeb361133ac8bdeaf59ceb0484e315a)

Author SHA1 Message Date
Tom Lane d8e6b84bd2 Avoid regressions in foreign-key-based selectivity estimates. 9 years ago
Tom Lane 92a43e4857 Reduce semijoins with unique inner relations to plain inner joins. 9 years ago
Tom Lane 2057a58d16 Fix mis-optimization of semijoins with more than one LHS relation. 9 years ago
Tom Lane 9c7f5229ad Optimize joins when the inner relation can be proven unique. 9 years ago
Andres Freund 7c5d8c16e1 Add explicit ORDER BY to a few tests that exercise hash-join code. 9 years ago
Heikki Linnakangas 181bdb90ba Fix typos in comments. 9 years ago
Tom Lane 207d5a656e Fix mishandling of equivalence-class tests in parameterized plans. 10 years ago
Tom Lane 80f66a9ad0 Fix planner failure with full join in RHS of left join. 10 years ago
Tom Lane d4c3a156cb Remove GROUP BY columns that are functionally dependent on other columns. 10 years ago
Tom Lane f867ce5518 ExecHashRemoveNextSkewBucket must physically copy tuples to main hashtable. 10 years ago
Tom Lane acfcd45cac Still more fixes for planner's handling of LATERAL references. 10 years ago
Tom Lane 7e19db0c09 Fix another oversight in checking if a join with LATERAL refs is legal. 10 years ago
Tom Lane 6a0779a397 Improve regression test case to avoid depending on system catalog stats. 11 years ago
Tom Lane cfe30a72fa Undo mistaken tightening in join_is_legal(). 11 years ago
Tom Lane 68fa28f771 Postpone extParam/allParam calculations until the very end of planning. 11 years ago
Tom Lane 4200a92862 Further mucking with PlaceHolderVar-related restrictions on join order. 11 years ago
Tom Lane 89db83922a Further adjustments to PlaceHolderVar removal. 11 years ago
Tom Lane bab163e121 Fix old oversight in join removal logic. 11 years ago
Tom Lane 8703059c6b Further fixes for degenerate outer join clauses. 11 years ago
Tom Lane 85e5e222b1 Fix a PlaceHolderVar-related oversight in star-schema planning patch. 11 years ago
Tom Lane f69b4b9495 Fix some planner issues with degenerate outer join clauses. 11 years ago
Tom Lane a6492ff897 Fix an oversight in checking whether a join with LATERAL refs is legal. 11 years ago
Tom Lane 95f4e59c32 Remove an unsafe Assert, and explain join_clause_is_movable_into() better. 11 years ago
Tom Lane fca8e59c1c Fix oversight in flattening of subqueries with empty FROM. 11 years ago
Tom Lane 358eaa01bf Make entirely-dummy appendrels get marked as such in set_append_rel_size. 11 years ago
Tom Lane 3cf8686014 Prevent improper reordering of antijoins vs. outer joins. 11 years ago
Tom Lane ca6805338f Fix incorrect matching of subexpressions in outer-join plan nodes. 11 years ago
Tom Lane f4abd0241d Support flattening of empty-FROM subqueries and one-row VALUES tables. 11 years ago
Tom Lane b746d0c32d Fix old bug in get_loop_count(). 11 years ago
Robert Haas e529cd4ffa Suggest to the user the column they may have meant to reference. 11 years ago
Tom Lane b514a7460d Fix planning of star-schema-style queries. 11 years ago
Tom Lane 1b4cc493d2 Preserve AND/OR flatness while extracting restriction OR clauses. 11 years ago
Tom Lane f15821eefd Allow join removal in some cases involving a left join to a subquery. 12 years ago
Tom Lane ab76208e3d Forward-port regression test for bug #10587 into 9.3 and HEAD. 12 years ago
Tom Lane a16d421ca4 Revert "Auto-tune effective_cache size to be 4x shared buffers" 12 years ago
Tom Lane 043f6ff05d Fix bogus handling of "postponed" lateral quals. 12 years ago
Tom Lane 158b7fa6a3 Disallow LATERAL references to the target table of an UPDATE/DELETE. 12 years ago
Tom Lane 0c051c9008 Fix LATERAL references to target table of UPDATE/DELETE. 12 years ago
Tom Lane f343a880d5 Extract restriction OR clauses whether or not they are indexable. 12 years ago
Tom Lane b5e0a2a384 Tweak placement of explicit ANALYZE commands in the regression tests. 12 years ago
Tom Lane f19e92ed04 Flatten join alias Vars before pulling up targetlist items from a subquery. 12 years ago
Tom Lane f3b3b8d5be Compute correct em_nullable_relids in get_eclass_for_sort_expr(). 12 years ago
Tom Lane 648bd05b13 Re-allow duplicate aliases within aliased JOINs. 12 years ago
Bruce Momjian ee1e5662d8 Auto-tune effective_cache size to be 4x shared buffers 12 years ago
Tom Lane c64de21e96 Fix qual-clause-misplacement issues with pulled-up LATERAL subqueries. 13 years ago
Tom Lane 9e7e29c75a Fix planner problems with LATERAL references in PlaceHolderVars. 13 years ago
Tom Lane 1b1d3d92c3 Remove ph_may_need from PlaceHolderInfo, with attendant simplifications. 13 years ago
Tom Lane db9f0e1d9a Postpone creation of pathkeys lists to fix bug #8049. 13 years ago
Tom Lane 2378d79ab2 Make LATERAL implicit for functions in FROM. 13 years ago
Tom Lane 72a4231f0c Fix planning of non-strict equivalence clauses above outer joins. 13 years ago