| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Marko Tiikkaja <marko(at)joh(dot)to> |
| Cc: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | Re: BUG #8598: Row count estimates of partial indexes |
| Date: | 2013-11-18 14:08:53 |
| Message-ID: | 9078.1384783733@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Marko Tiikkaja <marko(at)joh(dot)to> writes:
> On 11/17/13 9:18 PM, Tom Lane wrote:
>> The long-term answer as far as Postgres is concerned is to learn about
>> cross-column correlations, but that's not happening in the near future.
> I'm completely clueless about how the planner works, but wouldn't it be
> easier to have some kind of separate stats for the conditions in partial
> indexes? It seems better in all cases than trying infer the stats from
> cross-column correlations, even if we had that.
There's been some discussion of providing a way to hint to ANALYZE about
which combinations of columns are worth gathering cross-column statistics
for. But partial index predicates seem like a pretty bad mechanism for
that.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | steffen.hildebrandt | 2013-11-18 14:19:45 | BUG #8599: Wrong information in Documentation |
| Previous Message | Marko Tiikkaja | 2013-11-18 10:05:04 | Re: BUG #8598: Row count estimates of partial indexes |