pgsql: Don't clear btpo_cycleid during _bt_vacuum_one_page.
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Don't clear btpo_cycleid during _bt_vacuum_one_page. |
| Дата | |
| Msg-id | E1Rzvx1-0005nG-4y@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Don't clear btpo_cycleid during _bt_vacuum_one_page. When "vacuuming" a single btree page by removing LP_DEAD tuples, we are not actually within a vacuum operation, but rather in an ordinary insertion process that could well be running concurrently with a vacuum. So clearing the cycleid is incorrect, and could cause the concurrent vacuum to miss removing tuples that it needs to remove. This is a longstanding bug introduced by commit e6284649b9e30372b3990107a082bc7520325676 of 2006-07-25. I believe it explains Maxim Boguk's recent report of index corruption, and probably some other previously unexplained reports. In 9.0 and up this is a one-line fix; before that we need to introduce a flag to tell _bt_delitems what to do. Branch ------ REL9_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/e0eb63238a8ba66e685ac2308d1f597e15cb4216 Modified Files -------------- src/backend/access/nbtree/nbtpage.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера