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.
src/backend/commands/cluster.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
pgsql-committers by date
|Next:||From: Peter Eisentraut||Date: 2011-05-01 22:06:31|
|Subject: pgsql: Catch errors in for loop in makefile|
|Previous:||From: Dave Page||Date: 2011-05-01 09:15:51|
|Subject: Re: pgsql: Fix pg_size_pretty() to avoid overflow for
inputs close to INT64|