Commit Graph

79 Commits (793ecff7df80c5ffe598e431a6c2aca1d4c64eff)

Author SHA1 Message Date
Alexander Korotkov a7928a57b9 Replace the relid in some missing fields during SJE 2 years ago
Alexander Korotkov e0477837ce Make replace_relid() leave argument unmodified 2 years ago
Alexander Korotkov 0a93f803f4 Fix a comment for remove_self_joins_recurse() 2 years ago
Alexander Korotkov b5fb6736ed Don't constrain self-join removal due to PHVs 2 years ago
Alexander Korotkov 8a8ed916f7 Handle PlaceHolderVar case in replace_varno_walker 2 years ago
Alexander Korotkov b7f315c9d7 Fix how SJE checks against PHVs 2 years ago
Alexander Korotkov b44a1708ab Fix the way SJE removes references from PHVs 2 years ago
Alexander Korotkov 93c85db3b5 Fix allocation of UniqueRelInfo 2 years ago
Alexander Korotkov 2b26a69455 Make UniqueRelInfo a node 2 years ago
Alexander Korotkov d3d55ce571 Remove useless self-joins 2 years ago
David Rowley 7fcd7ef2a9 Don't use partial unique indexes for unique proofs in the planner 2 years ago
Tom Lane f4c00d138f When removing a left join, clean out references in EquivalenceClasses. 2 years ago
Tom Lane 9a2dbc614e Fix oversight in outer join removal. 2 years ago
Tom Lane 7a844c77ec Fix joinclause removal logic to cope with cloned clauses. 2 years ago
Tom Lane d0f952691f Fix thinko in join removal. 2 years ago
Tom Lane 9df8f903eb Fix some issues with improper placement of outer join clauses. 2 years ago
Tom Lane c8b881d21f Undo faulty attempt at not relying on RINFO_IS_PUSHED_DOWN. 2 years ago
Tom Lane 739f1d6218 Fix mis-handling of outer join quals generated by EquivalenceClasses. 3 years ago
Tom Lane f6db76c555 Prevent join removal from removing the query's result relation. 3 years ago
Tom Lane e9a20e451f When removing a relation from the query, drop its RelOptInfo. 3 years ago
Tom Lane 44e56baa80 Fix join removal logic to clean up sub-RestrictInfos of OR clauses. 3 years ago
Tom Lane 798c017634 remove_rel_from_query() must clean up PlaceHolderVar.phrels fields. 3 years ago
Tom Lane cad5692051 Fix up join removal's interaction with PlaceHolderVars. 3 years ago
Tom Lane 8538519db1 Fix thinko in outer-join removal. 3 years ago
Tom Lane b448f1c8d8 Do assorted mop-up in the planner. 3 years ago
Tom Lane 2489d76c49 Make Vars be outer-join-aware. 3 years ago
Bruce Momjian c8e1ba736b Update copyright for 2023 3 years ago
Tom Lane 6569ca4397 Make PlaceHolderInfo lookup O(1). 3 years ago
Bruce Momjian 27b77ecf9f Update copyright for 2022 4 years ago
Tom Lane 55dc86eca7 Fix pull_varnos' miscomputation of relids set for a PlaceHolderVar. 5 years ago
Bruce Momjian ca3b37487b Update copyright for 2021 5 years ago
Michael Paquier 8a15e735be Fix some grammar and typos in comments and docs 5 years ago
Bruce Momjian 7559d8ebfa Update copyrights for 2020 6 years ago
Tom Lane 1cff1b95ab Represent Lists as expansible arrays, not chains of cons-cells. 6 years ago
Tom Lane 8255c7a5ee Phase 2 pgindent run for v12. 6 years ago
Tom Lane f09346a9c6 Refactor planner's header files. 7 years ago
Bruce Momjian 97c39498e5 Update copyright for 2019 7 years ago
Tom Lane ec38dcd363 Tweak a couple of planner APIs to save recalculating join relids. 8 years ago
Tom Lane c792c7db41 Change more places to be less trusting of RestrictInfo.is_pushed_down. 8 years ago
Bruce Momjian 9d4649ca49 Update copyright for 2018 8 years ago
Tom Lane df3a66e282 Improve planner's handling of set-returning functions in grouping columns. 8 years ago
Peter Eisentraut 2eb4a831e5 Change TRUE/FALSE to true/false 8 years ago
Tom Lane 6f44fe7f12 Allow rel_is_distinct_for() to look through RelabelType below OpExpr. 8 years ago
Tom Lane 92a43e4857 Reduce semijoins with unique inner relations to plain inner joins. 9 years ago
Tom Lane 8f0530f580 Improve castNode notation by introducing list-extraction-specific variants. 9 years ago
Tom Lane 9c7f5229ad Optimize joins when the inner relation can be proven unique. 9 years ago
Peter Eisentraut 38d103763d Make more use of castNode() 9 years ago
Bruce Momjian 1d25779284 Update copyright via script for 2017 9 years ago
Tom Lane a4c35ea1c2 Improve parser's and planner's handling of set-returning functions. 9 years ago
Tom Lane 100340e2dc Restore foreign-key-aware estimation of join relation sizes. 9 years ago