Commit Graph

106 Commits (d713cf9b65ae1e7090a62c83bd78dec867871185)

Author SHA1 Message Date
Alexander Korotkov d713cf9b65 Refactor variable names in remove_self_joins_one_group() 2 weeks ago
Richard Guo bf9ee294e5 Simplify relation_has_unique_index_for() 4 weeks ago
Alexander Korotkov ab42d643c1 Refactor ChangeVarNodesExtended() using the custom callback 4 months ago
Alexander Korotkov 2782f3b845 Revert "Refactor ChangeVarNodesExtended() using the custom callback" 4 months ago
Alexander Korotkov 250a718aad Refactor ChangeVarNodesExtended() using the custom callback 4 months ago
Alexander Korotkov 1aa7cf9eb8 Disallow removing placeholders during Self-Join Elimination. 5 months ago
David Rowley d69d45a5a9 Speedup child EquivalenceMember lookup in planner 5 months ago
Amit Langote 88f55bc976 Make derived clause lookup in EquivalenceClass more efficient 5 months ago
Peter Eisentraut af4002b381 Rename amcancrosscompare 6 months ago
Alexander Korotkov e167191dc1 Get rid of ojrelid local variable in remove_rel_from_query() 7 months ago
Alexander Korotkov fc069a3a63 Implement Self-Join Elimination 7 months ago
Bruce Momjian 50e6eb731d Update copyright for 2025 8 months ago
David Rowley 2453196107 Move clause_sides_match_join() into restrictinfo.h 11 months ago
Tom Lane a3179ab692 Recalculate where-needed data accurately after a join removal. 12 months ago
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