Re: In progress INSERT wrecks plans on table

Поиск
Список
Период
Сортировка
От mark.kirkwood@catalyst.net.nz
Тема Re: In progress INSERT wrecks plans on table
Дата
Msg-id 9d1267f54ba06afd4624ac8dae787222.squirrel@mail.catalyst.net.nz
обсуждение исходный текст
Ответ на Re: In progress INSERT wrecks plans on table  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-performance
> mark.kirkwood@catalyst.net.nz wrote on 03.05.2013 00:19:
>> I think the idea of telling postgres that we are doing a load is
>> probably
>> the wrong way to go about this. We have a framework that tries to
>> automatically figure out the best plans...I think some more thought
>> about
>> how to make that understand some of the more subtle triggers for a
>> time-to-do-new-plans moment is the way to go. I understand this is
>> probably hard - and may imply some radical surgery to how the stats
>> collector and planner interact.
>
> I wonder if "freezing" (analyze, then disable autovacuum) the statistics
> for the large number of rows would work.
>
>
>

I'm thinking that the issue is actually the opposite - it is that a new
plan is needed because the new (uncomitted) rows are changing the data
distribution. So we want more plan instability rather than plan stability
:-)

Cheers

Mark




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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: In progress INSERT wrecks plans on table
Следующее
От: Mike McCann
Дата:
Сообщение: Hardware suggestions for maximum read performance