TOAST needs to do at least minimal time-qual checking in order not to

Tom Lane <tgl@sss.pgh.pa.us>

Commit: cf97080fa4afafb0d65e998a1c115cc8066d9118
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2002-01-16T20:29:02Z
Releases: 7.2.1
TOAST needs to do at least minimal time-qual checking in order not to
mess up after an aborted VACUUM FULL, per today's pghackers discussion.
Add a suitable HeapTupleSatisfiesToast routine.  Remove useless special-
case test in HeapTupleSatisfiesVisibility macro for xmax =
BootstrapTransactionId; perhaps that was needed at one time, but it's
a waste of cycles now, not to mention actively wrong for SnapshotAny.
Along the way, add some much-needed comments to tqual.c, and simplify
toast_fetch_datum, which no longer needs to assume it may see chunks
out-of-order.

Files

PathChange+/−
src/backend/access/heap/tuptoaster.c modified +22 −26
src/backend/utils/time/tqual.c modified +115 −13
src/include/utils/tqual.h modified +21 −20