Re: [GENERAL] Queries are taking way longer in 9.6 than 9.5

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: [GENERAL] Queries are taking way longer in 9.6 than 9.5
Дата
Msg-id CAHyXU0xSSy0C-oZ9KFWJ0SK0v7NNNqTZ0A1whguaDLAAKNEmxA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Queries are taking way longer in 9.6 than 9.5  (Ravi Tammineni <rtammineni@partner.aligntech.com>)
Ответы Re: [GENERAL] Queries are taking way longer in 9.6 than 9.5
Список pgsql-general
On Wed, Jan 18, 2017 at 1:04 PM, Ravi Tammineni
<rtammineni@partner.aligntech.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


В списке pgsql-general по дате отправления: