Re: Slow query after upgrade from 9.0 to 9.2

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: Slow query after upgrade from 9.0 to 9.2
Дата
Msg-id CAMkU=1z0iabTNxVHKRbW5oKW+gcCac+O9x4OpETa_ygRdqomkA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Slow query after upgrade from 9.0 to 9.2  (Andrzej Zawadzki <zawadaa@wp.pl>)
Список pgsql-performance
On Fri, Jan 11, 2013 at 12:13 AM, Andrzej Zawadzki <zawadaa@wp.pl> wrote:
> On 10.01.2013 19:17, Jeff Janes wrote:

>> Also, if you temporarily set enable_seqscan=off on 9.2, what plan do
>> you then get?
>
> Plan is different.
>

> "                Join Filter: (sa.arrear_import_id = ai.id)"

It is hard to imagine why it is not using
sygma_arrear_arrear_import_id_idx for this given the plan is now
accessing the index anyway.  Have the types or encodings or collations
somehow become incompatible so that this index can no longer fulfill
it?

What if you just write a very simple join between the two tables with
the above join condition, with another highly selective condition on
ai?

Cheers,

Jeff


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

Предыдущее
От: Matheus de Oliveira
Дата:
Сообщение: Re: Partition insert trigger using C language
Следующее
От: Horst Dehmer
Дата:
Сообщение: Insert performance for large transaction with multiple COPY FROM