Commit Graph

61 Commits (03d02f54a64089284582cc60d94a8af09ff4e081)

Author SHA1 Message Date
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. 8 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
Tom Lane f338dd7585 Refactor join_is_removable() to separate out distinctness-proving logic. 10 years ago
Tom Lane 364a9f47ab Refactor pull_var_clause's API to make it less tedious to extend. 10 years ago
Bruce Momjian ee94300446 Update copyright for 2016 10 years ago
Tom Lane 4fcf48450d Get rid of the planner's LateralJoinInfo data structure. 10 years ago
Tom Lane 89db83922a Further adjustments to PlaceHolderVar removal. 10 years ago
Tom Lane bab163e121 Fix old oversight in join removal logic. 10 years ago
Bruce Momjian 807b9e0dff pgindent run for 9.5 10 years ago
Andres Freund f3d3118532 Support GROUPING SETS, CUBE and ROLLUP. 10 years ago
Bruce Momjian 4baaf863ec Update copyright for 2015 11 years ago
Tom Lane d25367ec4f Add bms_get_singleton_member(), and use it where appropriate. 11 years ago
Tom Lane f15821eefd Allow join removal in some cases involving a left join to a subquery. 11 years ago
Bruce Momjian 0a78320057 pgindent run for 9.4 12 years ago
Bruce Momjian 7e04792a1c Update copyright for 2014 12 years ago
Tom Lane 9e7e29c75a Fix planner problems with LATERAL references in PlaceHolderVars. 12 years ago
Tom Lane 1b1d3d92c3 Remove ph_may_need from PlaceHolderInfo, with attendant simplifications. 12 years ago
Bruce Momjian 9af4159fce pgindent run for release 9.3 12 years ago
Bruce Momjian bd61a623ac Update copyrights for 2013 13 years ago
Tom Lane 9ff79b9d4e Fix up planner infrastructure to support LATERAL properly. 13 years ago