]> granicus.if.org Git - postgresql/commit
Partially revert my patch of 2008-11-12 that installed a limit on the number
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 May 2009 17:56:22 +0000 (17:56 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 May 2009 17:56:22 +0000 (17:56 +0000)
commit1b72c707029b4639019fe34a60f05156ac27bfc0
tree2b7dfd95b29f44e56e638ec97a08baf75b4f8a7a
parent2518811877f6b9320bf364b7384d53d5bbf84c40
Partially revert my patch of 2008-11-12 that installed a limit on the number
of AND/OR clause branches that predtest.c would attempt to deal with.  As
noted in bug #4721, that change disabled proof attempts for sizes of problems
that people are actually expecting it to work for.  The original complaint
it was trying to solve was O(N^2) behavior for long IN-lists, so let's try
applying the limit to just ScalarArrayOpExprs rather than everything.
Another case of "foolish consistency" I fear.

Back-patch to 8.2, same as the previous patch was.
src/backend/optimizer/util/predtest.c