Re: brin index vacuum versus transaction snapshots

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: brin index vacuum versus transaction snapshots
Дата
Msg-id 20150730200140.GV2441@postgresql.org
обсуждение исходный текст
Ответ на brin index vacuum versus transaction snapshots  (Kevin Grittner <kgrittn@ymail.com>)
Ответы Re: brin index vacuum versus transaction snapshots  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: brin index vacuum versus transaction snapshots  (Kevin Grittner <kgrittn@ymail.com>)
Список pgsql-hackers
Kevin Grittner wrote:
> If you run `make installcheck` against a cluster with
> default_transaction_isolation = 'repeatable read' you get one
> failure:

I am tempted to say that we should just disallow to run vacuum on a
table containing a brin index in a transaction-snapshot transaction.
It is possible to silence the problem by checking for vacuum flags, but
(without testing) I think there will be a problem because the snapshot
is acquired too early and it is possible for concurrent transactions to
insert tuples in the table that the summarizing scan will not see, which
will cause the index to become effectively corrupt.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Remaining 'needs review' patchs in July commitfest
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Support for N synchronous standby servers - take 2