Re: Invalid indexes should not consume update overhead
От | Tomasz Ostrowski |
---|---|
Тема | Re: Invalid indexes should not consume update overhead |
Дата | |
Msg-id | 578B6F00.3080104@ato.waw.pl обсуждение исходный текст |
Ответ на | Re: Invalid indexes should not consume update overhead (Greg Stark <stark@mit.edu>) |
Ответы |
Re: Invalid indexes should not consume update overhead
|
Список | pgsql-bugs |
On 2016-07-17 02:09, Greg Stark wrote: > The real solution imho is to actually clean up failed index builds when > a build fails. That wouldn't solve my problem, which is that I need a way to disable indexes before large update. I believe (but I'm not sure) that Oracle has this concept: ALTER INDEX [INDEX_NAME] UNUSABLE; Maybe, if an index is in invalid state, update can check which part of table is already indexed and which part is not. Then it would only update indexes of this already reindexed part of table. This way purposely invalid indexes could be marked valid for blocks numbers less than 0. This might actually be a win during concurrent index creation as concurrent updates would not have to update index for all updated rows. But I don't know if it's feasible from concurrency perspective at all. Regards, Tomasz "Tometzky" Ostrowski
В списке pgsql-bugs по дате отправления: