From: | Adam Brusselback <adambrusselback(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: 9.6 query slower than 9.5.3 |
Date: | 2016-06-17 02:09:53 |
Message-ID: | CAMjNa7eNg538eSD9tzt7AC_S2b+AAdoZe0J5yLTK7w_gTFta_w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
I analyzed all tables involved after loading, and also while trying to
diagnose this issue.
I have the same statistics target settings on both servers.
Here are the schemas for the tables:
On Thu, Jun 16, 2016 at 10:04 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Adam Brusselback <adambrusselback(at)gmail(dot)com> writes:
> > Hey all, testing out 9.6 beta 1 right now on Debian 8.5.
> > I have a query that is much slower on 9.6 than 9.5.3.
>
> The rowcount estimates in 9.6 seem way off. Did you ANALYZE the tables
> after loading them into 9.6? Maybe you forgot some statistics target
> settings?
>
> If it's not that, I wonder whether the misestimates are connected to the
> foreign-key-based estimation feature. Are there any FKs on the tables
> involved? May we see the table schemas?
>
> regards, tom lane
>
From | Date | Subject | |
---|---|---|---|
Next Message | Adam Brusselback | 2016-06-17 02:14:22 | Re: 9.6 query slower than 9.5.3 |
Previous Message | Tom Lane | 2016-06-17 02:04:25 | Re: 9.6 query slower than 9.5.3 |