Re: BUG #8620: SELECT on Materialized View Fails to Use Index - Mailing list pgsql-bugs

From Jesse Denardo
Subject Re: BUG #8620: SELECT on Materialized View Fails to Use Index
Date
Msg-id CANiVXAiy5nDP_=4z16ydiZZt0N065Un8aZuYOGOAdV5VcTy6TQ@mail.gmail.com
Whole thread Raw
In response to Re: BUG #8620: SELECT on Materialized View Fails to Use Index  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Thanks Tom, that did the trick.


--
Jesse Denardo


On Sat, Nov 23, 2013 at 12:53 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> jesse.denardo@myfarms.com writes:
> > Any idea why Postgres would fail to use the
> > index on one machine but not the other, for identical queries?
>
> The rowcount estimates are far from identical.  Maybe you've ANALYZEd the
> matview on one machine and not the other?  Could you have auto-analyze
> disabled on the second machine?
>
>                         regards, tom lane
>
>

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #8620: SELECT on Materialized View Fails to Use Index
Next
From: Tom Lane
Date:
Subject: Re: Server may segfault when using slices on int2vector