Re: Problem Observed in behavior of Create Index Concurrently and Hot Update
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Problem Observed in behavior of Create Index Concurrently and Hot Update |
| Дата | |
| Msg-id | 26565.1354043293@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Problem Observed in behavior of Create Index Concurrently and Hot Update (Andres Freund <andres@2ndquadrant.com>) |
| Ответы |
Re: Problem Observed in behavior of Create Index Concurrently and
Hot Update
|
| Список | pgsql-hackers |
BTW, I was thinking that the DROP INDEX CONCURRENTLY logic needed to be:
1. Unset indisvalid, commit, wait out all reading transactions.
2. Unset indisready, commit, wait out all writing transactions.
3. Unset indislive, commit (with parent table relcache flush),
wait out all reading-or-writing transactions.
4. Drop the index.
However, I wonder whether we couldn't combine steps 2 and 3, ie once
there are no readers of the index go directly to the "dead" state.
I don't see a need for a period where the index isn't being inserted
into but is still used for HOT-safety decisions.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера