Re: Substantial different index use between 9.5 and 9.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bill Measday <bill@xxxxxxxxxxx> writes:
> Substantial different index use between 9.5 and 9.6

Maybe you missed an ANALYZE after migrating?  The plan difference
seems to be due to a vast difference in rowcount estimate for the
m_elevations condition:

>       ->  Bitmap Heap Scan on m_elevations e 
> (cost=282802.21..37401439.43 rows=3512160 width=8)

>       ->  Seq Scan on m_elevations e 
> (cost=10000000000.00..13296950520.12 rows=3512159563 width=8)

If you don't know where that factor-of-1000 came from, maybe take
it up with the postgis folk.  It'd mostly be coming out of their
selectivity estimation routines.

			regards, tom lane


-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux