pgsql: Make CLUSTER lock the old table's toast table before copying dat

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Make CLUSTER lock the old table's toast table before copying dat
Дата
Msg-id E1QGeef-0004Jf-Nb@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Make CLUSTER lock the old table's toast table before copying data.

We must lock out autovacuuming of the old toast table before computing the
OldestXmin horizon we will use.  Otherwise, autovacuum could start on the
toast table later, compute a later OldestXmin horizon, and remove as DEAD
toast tuples that we still need (because we think their parent tuples are
only RECENTLY_DEAD).  Per further thought about bug #5998.

Branch
------
REL8_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/fd384cfc34b0b2e393c5d9c92acb0600f5a3e5b8

Modified Files
--------------
src/backend/commands/cluster.c |   16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Make CLUSTER lock the old table's toast table before copying dat
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Make CLUSTER lock the old table's toast table before copying dat