Re: Partition pruning

From: Yong Huang <>
Date: Sat, 2 May 2009 16:04:04 -0700 (PDT)
Message-ID: <>

Hi, Cheng,

Regarding your question why subquery partition pruning still occurs when it obviously should not (see the message at ), I think this Metalink note is relevant: Note:802367.1 "Cost Of Subquery Pruned Partitioned Table Is The Same As Accessing All Partitions", or the same titled Bug 8418618. You didn't tell us Oracle version. Is it or

If I'm not mistaken, your query actually accesses all 7 partitions. So the correct plan should show

  • --------------- Operation Pstart| Pstop
  • --------------- ... PARTITION RANGE ALL 1 | 7
You can get that plan with the workaround in the Metalink note after you disable _subquery_pruning_enabled.

> f_order is subpartitioned by range. Partition pruning should happen when
> d_time joins with f_order.
> ...
> I wonder how can partition pruning can happen when d_client joins with
> f_order when the partitioning key is pointing to d_time?

I don't quite follow you here. But take a look at that Metalink note.

Yong Huang       

Received on Sat May 02 2009 - 18:04:04 CDT

Original text of this message