Finish incomplete revert of ec63622c0. The code change this made might well be fine to keep, but the comment justifying it by reference to self-join removal isn't. Let's just go back to the status quo ante, pending a more thorough review/redesign of SJE.
(I found this by grepping to see if any references to self-join removal remained in the tree.) Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/07746a8ef2a871d904c26364cdca4e7feeffe395 Modified Files -------------- src/backend/optimizer/prep/prepunion.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)