]> granicus.if.org Git - postgresql/commit
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)
commitcdcaec5c53b290cc5e51a520980a97ac9eb4d5e3
tree12987a37f4779b0d889f6c23501a8b5f786f3437
parent722f7efdd96e979b4c8e081eb31e0ea0f08b3591
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