]> 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:08 +0000 (17:56 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 11 May 2009 17:56:08 +0000 (17:56 +0000)
commit6480c143ee067544730993d03e0eb567f3acd71e
treeea6dcb47c0ab8cdec0020ec6eb5d042788da4167
parente54ec9231c3c7bdbfa1dfae7750b22d17afc2fc4
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