performance drop after upgrade (9.6 > 10)

From: johannes graën <johannes(at)selfnet(dot)de>
To: pgsql-performance(at)postgresql(dot)org
Subject: performance drop after upgrade (9.6 > 10)
Date: 2017-10-11 11:06:46
Message-ID: CA++JNSeCW1BSRVS7N--OmVOMDiMVA61_DFMA24fFbM2R7JdQjQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

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?

Best
Johannes

[1] https://explain.depesz.com/s/xsPP

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2017-10-11 11:07:22 Re: On markers of changed data
Previous Message kes-kes 2017-10-11 10:35:12 BUG #14850: Implement optinal additinal parameter for 'justify' date/time function

Browse pgsql-performance by date

  From Date Subject
Next Message Pavel Stehule 2017-10-11 11:11:17 Re: performance drop after upgrade (9.6 > 10)
Previous Message Ants Aasma 2017-10-11 09:33:31 Rowcount estimation changes based on from clause order