Re: Query much slower after upgrade to 9.6.1 - Mailing list pgsql-performance

From Adam Brusselback
Subject Re: Query much slower after upgrade to 9.6.1
Date
Msg-id CAMjNa7dR-QiteVCW+scjg7H7-+=vVSprm+pyr4Ffq=6=kVfTHQ@mail.gmail.com
Whole thread Raw
In response to Re: Query much slower after upgrade to 9.6.1  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
Did you pay attention to the estimated number of groups (ie, estimated
output rowcount for the aggregation plan node) while fooling around with
the statistics?  How does it compare to reality, and to 9.5's estimate?

I'm re-doing the tests and paying attention to that now.

With statistics = 100, the under / over estimations change only slightly. Nothing that drastically alters anything: https://explain.depesz.com/s/GEWy
With statistics = 1000 pretty much the same as above: https://explain.depesz.com/s/6CWM

So between 9.5.5, 9.6.1, none of the stats changed in a noticeable way. Changing the statistics target on 9.6.1 slightly altered the estimates, but nothing to write home about.
All have some significant deviations from actual row counts in the part of the query which is making the query slow.

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Query much slower after upgrade to 9.6.1
Next
From: Stephen Frost
Date:
Subject: Re: archive_command too slow.