Fix an oversight I introduced on 2003-12-28: find_nots/push_nots should
authorTom Lane
Fri, 29 Jul 2005 21:40:02 +0000 (21:40 +0000)
committerTom Lane
Fri, 29 Jul 2005 21:40:02 +0000 (21:40 +0000)
commit284e4739ef898807202337f830eee38ad7de18fc
treea0e5efe0195daf4426bc2c0b3ad255e61ba35594
parent80f6c35833508a793b5b488fb56f52118259eba5
Fix an oversight I introduced on 2003-12-28: find_nots/push_nots should
continue to recurse after eliminating a NOT-below-a-NOT, since the
contained subexpression will now be part of the top-level AND/OR structure
and so deserves to be simplified.  The real-world impact of this is
probably minimal, since it'd require at least three levels of NOT to make
a difference, but it's still a bug.
Also remove some redundant tests for NULL subexpressions.
src/backend/optimizer/prep/prepqual.c