Re: BUG #5652: Optimizer does wrong thing with partitioned tables

From: Euler Taveira de Oliveira <euler(at)timbira(dot)com>
To: Mladen Gogala <mladen(dot)gogala(at)vmsinfo(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5652: Optimizer does wrong thing with partitioned tables
Date: 2010-09-10 13:31:38
Message-ID: 4C8A333A.7090208@timbira.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Mladen Gogala escreveu:
> Optimizer chooses to scan each partitioned table sequentially, instead of
> using the available index:
>
This is not a bug. How would the optimizer know that the maximum value is in
that specific partition? There is neither a global index for a partitioned
table nor an optimizer artifact to know aggregate information before scanning
all of the partitions. Maybe when we have a better support for table
partitioning such optimizer artifact would be implemented but don't hold your
breath.

--
Euler Taveira de Oliveira
http://www.timbira.com/

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Mladen Gogala 2010-09-10 14:37:07 Re: BUG #5652: Optimizer does wrong thing with partitioned tables
Previous Message Mladen Gogala 2010-09-10 13:01:58 BUG #5652: Optimizer does wrong thing with partitioned tables