Temporarily (I hope) disable flattening of IN/EXISTS sublinks that are within
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 27 Feb 2009 23:30:29 +0000 (23:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 27 Feb 2009 23:30:29 +0000 (23:30 +0000)
commit42366690a0f3798eebdcefeb2ed67c1e66c48f1e
tree809aef8ea185ae3cecd3779b02300d17ace53b98
parent007cf51a4dcc7bd031a45ad3836e986343a440e7
Temporarily (I hope) disable flattening of IN/EXISTS sublinks that are within
the ON clause of an outer join.  Doing so is semantically correct but results
in de-optimizing queries that were structured to take advantage of the sublink
style of execution, as seen in recent complaint from Kevin Grittner.  Since
the user can get the other behavior by reorganizing his query, having the
flattening happen automatically is just a convenience, and that doesn't
justify breaking existing applications.  Eventually it would be nice to
re-enable this, but that seems to require a significantly different approach
to outer joins in the executor.
src/backend/optimizer/prep/prepjointree.c