OSDN Git Service

This patch fixes a regression caused by my recent changes to heap
authorBruce Momjian <bruce@momjian.us>
Sat, 20 Jul 2002 04:57:13 +0000 (04:57 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 20 Jul 2002 04:57:13 +0000 (04:57 +0000)
commite77054e0294b5cbb3405fedb29fc9e4c57f2b22f
tree4d5885842236cf417872e5f7739cd564f3e67f43
parentcdf4b9aff2ca8672d61de8456809d94b1d9eda53
This patch fixes a regression caused by my recent changes to heap
tuple header.  The fix is based on the thought that HEAP_MOVED_IN is
not needed any more as soon as HEAP_XMIN_COMMITTED has been set.  So
in tqual.c and vacuum.c the HEAP_MOVED bits are cleared when
HEAP_XMIN_COMMITTED is set.

Vacuum robustness is enhanced by rearranging ifs, so that we have a
chance to elog(ERROR, ...) before an assertion fails.

A new regression test is included.

Manfred Koizar
src/backend/commands/vacuum.c
src/backend/utils/time/tqual.c
src/test/regress/parallel_schedule
src/test/regress/serial_schedule