Re: Query much slower after upgrade to 9.6.1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adam Brusselback <adambrusselback(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Query much slower after upgrade to 9.6.1
Date: 2016-11-07 19:16:49
Message-ID: 3809.1478546209@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Adam Brusselback <adambrusselback(at)gmail(dot)com> writes:
> As suggested in the Postgres slack channel by lukasfittl, I disabled
> hashagg on my old server, and ran the query again. That changed one piece
> to a groupagg (like was used on the new server) and the performance was
> similar to the 9.6.1 box.

If the problem is "new server won't use hashagg", I'd wonder whether
the work_mem setting is the same, or whether maybe you need to bump
it up some (the planner's estimate of how big the hashtable would be
might have changed a bit).

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Adam Brusselback 2016-11-07 19:26:49 Re: Query much slower after upgrade to 9.6.1
Previous Message Adam Brusselback 2016-11-07 18:05:40 Re: Query much slower after upgrade to 9.6.1