Commit Graph

92 Commits (7f7474a8e4002ac9fd4979cc7b16b50b70b70c28)

Author SHA1 Message Date
Tom Lane c7be3c015b Make left-join removal safe under -DREALLOCATE_BITMAPSETS. 1 year ago
Alexander Korotkov d1d286d83c Revert: Remove useless self-joins 1 year ago
Peter Eisentraut dbbca2cf29 Remove unused #include's from backend .c files 2 years ago
Alexander Korotkov 466979ef03 Replace lateral references to removed rels in subqueries 2 years ago
Peter Eisentraut 3d47b75546 pgindent fix 2 years ago
Alexander Korotkov 489072ab7a Replace relids in lateral subquery parse tree during SJE 2 years ago
Nathan Bossart 5497daf3aa Replace calls to pg_qsort() with the qsort() macro. 2 years ago
Alexander Korotkov fe093994db Fix 'negative bitmapset member' error 2 years ago
Alexander Korotkov 028b15405b An addition to 8c441c0827 2 years ago
Alexander Korotkov 8c441c0827 Forbid SJE with result relation 2 years ago
Alexander Korotkov 30b4955a46 Fix misuse of RelOptInfo.unique_for_rels cache by SJE 2 years ago
Alexander Korotkov 5ef34a8fc3 Fix the issue that SJE mistakenly omits qual clauses 2 years ago
Bruce Momjian 29275b1d17 Update copyright for 2024 2 years ago
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