OSDN Git Service

From: David Hartwig <daybee@bellatlantic.net>
authorMarc G. Fournier <scrappy@hub.org>
Fri, 4 Sep 1998 12:52:23 +0000 (12:52 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Fri, 4 Sep 1998 12:52:23 +0000 (12:52 +0000)
commit370d6cdb64dfd571b9614263035f82eeb7a0aa1e
treec804567d4b16b9bc1eccf938b53d953014df4e50
parente9d0fa3762fd3731117c5ba0fee719771aacfd98
From: David Hartwig <daybee@bellatlantic.net>

I put some extra checks to make sure a query was a good candidate for
rewrite into a UNION.    Besides the existing checks:

1.  Make sure the AND/OR tree was rectangular.  ( i.e.    3 X 4  or 10 X
3)
2.  Only one table.
3.  Must have an AND dimension.
4.  At least 9 OP expressions total

Also  cleaned up and commented.
src/backend/optimizer/prep/prepkeyset.c