Re: brin index vacuum versus transaction snapshots
От | Alvaro Herrera |
---|---|
Тема | Re: brin index vacuum versus transaction snapshots |
Дата | |
Msg-id | 20150804220017.GX2441@postgresql.org обсуждение исходный текст |
Ответ на | Re: brin index vacuum versus transaction snapshots (Alvaro Herrera <alvherre@2ndquadrant.com>) |
Ответы |
Re: brin index vacuum versus transaction snapshots
|
Список | pgsql-hackers |
Alvaro Herrera wrote: > Thankfully I found > another way to solve it, which is to forgo usage of MVCC here and > instead use SnapshotAny. There's already a mode in > IndexBuildHeapRangeScan that uses SnapshotAny, but it needs some tweaks > to do what we need. I'm going to propose a patch along those lines > shortly. Here's the promised patch. Includes a new isolation test (which fails with the old code in two ways: first when using VACUUM it causes the error message Kevin didn't like to be raised; second when using brin_summarize_new_values it causes the inserted tuple to not be part of the summary, which is wrong). This test leaves the pageinspect extension installed in the isolationtest database, but that seems fine to me. (No other isolation test installs an extension.) The error message Kevin complained about is gone, as is some related commentary. This is replaced by tweaks in IndexBuildHeapRangeScan that know to do a SnapshotAny scan without being noisy about in progress insertions/deletions. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Вложения
В списке pgsql-hackers по дате отправления: