Re: Queries are taking way longer in 9.6 than 9.5

From: Melvin Davidson <melvin6925(at)gmail(dot)com>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: Ravi Tammineni <rtammineni(at)partner(dot)aligntech(dot)com>, Chris Mair <chris(at)1006(dot)org>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Queries are taking way longer in 9.6 than 9.5
Date: 2017-01-18 20:12:03
Message-ID: CANu8Fiy0Ln9a8XJ+DH2NNKXAL6sLadhQGQbS_bGVZkrPaX77qg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-admin pgsql-general

On Wed, Jan 18, 2017 at 3:06 PM, Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:

> On Wed, Jan 18, 2017 at 1:04 PM, Ravi Tammineni
> <rtammineni(at)partner(dot)aligntech(dot)com> wrote:
> > Hi Chris,
> >
> > Here is the query and execution plan in 9.5 and 9.6.
>
> Can you verify tblpuorderstatus and tblpuorderstatushistory have all
> indexes accounted for on both servers? It seems incredible server
> would prefer wading through 11M records to 1298 nestloop. I'm curious
> what plans you get if you try playing around with:
>
> set enable_seqscan=false;
> set enable_hashjoin=false;
>
> ...but I think we have two possibilities here:
> 1. schema mismatch
> 2. planner bug
>
> merlin
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

*I never got an answer to my question.*

*Have you verified that postgresql.conf is the same of both 9.5 & 9.6?*

--
*Melvin Davidson*
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Merlin Moncure 2017-01-19 04:58:39 Re: Queries are taking way longer in 9.6 than 9.5
Previous Message Merlin Moncure 2017-01-18 20:06:15 Re: Queries are taking way longer in 9.6 than 9.5

Browse pgsql-admin by date

  From Date Subject
Next Message Stephen Frost 2017-01-18 20:16:38 Re: PostgreSQL 9.3 ERROR
Previous Message Merlin Moncure 2017-01-18 20:06:15 Re: Queries are taking way longer in 9.6 than 9.5

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Grittner 2017-01-18 20:23:18 Re: Database of articles, LaTeX code and pictures
Previous Message Merlin Moncure 2017-01-18 20:06:15 Re: Queries are taking way longer in 9.6 than 9.5