Re: performance drop after upgrade (9.6 > 10)

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: johannes graën <johannes(at)selfnet(dot)de>
Cc: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: performance drop after upgrade (9.6 > 10)
Date: 2017-10-11 11:11:17
Message-ID: CAFj8pRDnW+bD5OmWjawxryv_=BctsE8HF5Y1n=oxgQ+xwrVqUQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

2017-10-11 13:06 GMT+02:00 johannes graën <johannes(at)selfnet(dot)de>:

> Hi,
>
> I wrote a query that joins several tables usually returning less than
> 1000 rows, groups them and generates a JSON object of the result. In
> 9.6 is was a question of milliseconds for that query to return the
> requested data. Now, after upgrading to 10, the query never returns -
> at least it hasn't returned in the last hour.
>
> To see what happens, I requested the query plan [1]. It looks complex
> and shows a lot of parallelization. I don't have the query plan from
> 9.6, but I remember it being considerably simpler.
>
> Can anyone have a guess what altered the performance here so
> dramatically? Is there a way to disable new parallelization features
> just for this query to see if it makes any difference?
>
>

have you fresh statistics? After upgrade is necessary to run ANALYZE command

Regards

Pavel

Best
> Johannes
>
>
> [1] https://explain.depesz.com/s/xsPP
>
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Prabhat Sahu 2017-10-11 11:55:42 Re: Parallel Hash take II
Previous Message Ashutosh Bapat 2017-10-11 11:08:23 Re: advanced partition matching algorithm for partition-wise join

Browse pgsql-performance by date

  From Date Subject
Next Message johannes graën 2017-10-11 12:19:08 Re: performance drop after upgrade (9.6 > 10)
Previous Message johannes graën 2017-10-11 11:06:46 performance drop after upgrade (9.6 > 10)