Re: BUG #5652: Optimizer does wrong thing with partitioned tables - Mailing list pgsql-bugs

From Euler Taveira de Oliveira
Subject Re: BUG #5652: Optimizer does wrong thing with partitioned tables
Date
Msg-id 4C8A333A.7090208@timbira.com
Whole thread Raw
In response to BUG #5652: Optimizer does wrong thing with partitioned tables  ("Mladen Gogala" <mladen.gogala@vmsinfo.com>)
Responses Re: BUG #5652: Optimizer does wrong thing with partitioned tables  (Mladen Gogala <mgogala@vmsinfo.com>)
Re: BUG #5652: Optimizer does wrong thing with partitioned tables  (Chris Travers <chris@metatrontech.com>)
Re: BUG #5652: Optimizer does wrong thing with partitioned tables  (Robert Haas <robertmhaas@gmail.com>)
List 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/

pgsql-bugs by date:

Previous
From: "Mladen Gogala"
Date:
Subject: BUG #5652: Optimizer does wrong thing with partitioned tables
Next
From: Mladen Gogala
Date:
Subject: Re: BUG #5652: Optimizer does wrong thing with partitioned tables