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

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: BUG #5652: Optimizer does wrong thing with partitioned tables
Дата
Msg-id AANLkTi=8HaHLehroY+ZzcJY8M5KG5xKxndKH+pZeud9T@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #5652: Optimizer does wrong thing with partitioned tables  (Euler Taveira de Oliveira <euler@timbira.com>)
Список pgsql-bugs
On Fri, Sep 10, 2010 at 9:31 AM, Euler Taveira de Oliveira
<euler@timbira.com> wrote:
> 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.

I wonder if Merge Append could be made to help with this case.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: BUG #5644: Selecting ROW() in variable with 9.0 not compatible with 8.4
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5644: Selecting ROW() in variable with 9.0 not compatible with 8.4