WL#2985: Perform Partition Pruning of Range conditions

Affects: Server-5.1   —   Status: Complete

This is part of the solution to the problem of only using
the necessary partitions in a query using partitioned.

The problem is given any WHERE clause with a set of tables
to come up with a set of bitmaps (one bitmap per table) where
the bitmap specifies all partitions to be used for that table.
(Naturally only bitmaps are needed for partitioned tables).

This is another way of phrasing the problem defined in
WL #2537 and WL #2538.


Background
----------
From an email from Mikael Ronstrom to Trudy Pelzer, 2005-11-17:
> After discussing with Mark Matthews I went ahead and made a slight 
> reorganisation of the WL tasks for handling optimisations of 
> partitioning that enables more parallelism in the development.
>
> The split is to implement WL #2537 and WL #2538 by WL#2985, 2986 
> and 2987 instead.
>
> WL 2985 is the Server part of the optimisation, WL 2986 is the 
> partition handler part of the tasks and WL 2987 is the NDB handler 
> part of the optimisation.
>
Cancelled entries are WL#2537 and 2538; see their descriptions
for further details.
-- Trudy Pelzer, 2005-11-23