pgsql: Fix interaction between CREATE INDEX and "snapshot too old".
В списке pgsql-committers по дате отправления:
| От | Kevin Grittner |
|---|---|
| Тема | pgsql: Fix interaction between CREATE INDEX and "snapshot too old". |
| Дата | |
| Msg-id | E1bBNXL-0007oE-JW@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Fix interaction between CREATE INDEX and "snapshot too old". Since indexes are created without valid LSNs, an index created while a snapshot older than old_snapshot_threshold existed could cause queries to return incorrect results when those old snapshots were used, if any relevant rows had been subject to early pruning before the index was built. Prevent usage of a newly created index until all such snapshots are released, for relations where this can happen. Questions about the interaction of "snapshot too old" with index creation were initially raised by Andres Freund. Reviewed by Robert Haas. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/bf9a60ee3349a2f2dc5fe6d571a8d39cfc634371 Modified Files -------------- src/backend/catalog/index.c | 28 +++++++++++++++++++++------- src/backend/storage/buffer/bufmgr.c | 3 +-- src/backend/utils/time/snapmgr.c | 5 +---- src/include/utils/snapmgr.h | 13 +++++++++++++ 4 files changed, 36 insertions(+), 13 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера