Re: Unused index influencing sequential scan plan

From: Thom Brown <thom(at)linux(dot)com>
To: Peter Geoghegan <peter(at)2ndquadrant(dot)com>
Cc: pgsql-performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Unused index influencing sequential scan plan
Date: 2012-10-18 16:46:12
Message-ID: CAA-aLv4hdDaNcXtjy4zfW16hMs8g0aboHp1NJPn+UcsaQN2L6g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 18 October 2012 17:24, Peter Geoghegan <peter(at)2ndquadrant(dot)com> wrote:
> On 18 October 2012 17:11, Thom Brown <thom(at)linux(dot)com> wrote:
>> The estimate is down to almost a 10th of what it was before. What's going on?
>
> Even though the index isn't used, the pg_statistic entries that the
> expression index would have made available are. It's as if you
> materialised the expression into a column, analyzed and grouped by
> that.

D'oh, of course! Thanks Peter.

--
Thom

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Thom Brown 2012-10-18 16:47:42 Re: Unused index influencing sequential scan plan
Previous Message Tom Lane 2012-10-18 16:44:27 Re: Unused index influencing sequential scan plan