Avoid reversing user-given order of WHERE clauses while attaching clauses
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Apr 2001 19:44:10 +0000 (19:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Apr 2001 19:44:10 +0000 (19:44 +0000)
commit6fbc8cd9e12265b54bc8c266bfde870bf16e9cd7
tree02a2af2d14f30594168f6b74ba2ed5a48bc32b28
parent282f590f0aebc2f402843891f8e7a115bad15e82
Avoid reversing user-given order of WHERE clauses while attaching clauses
to specific base or join RelOptInfo nodes during planning.  This preserves
the more-intuitive behavior of 7.0.* --- if you write an expensive clause
(such as a sub-select) last, it should get evaluated last.  Someday we
ought to try to have some intelligence about the order of evaluation of
WHERE clauses, but for now we should not override what the user wrote.
src/backend/optimizer/plan/initsplan.c