OSDN Git Service

TOAST needs to do at least minimal time-qual checking in order not to
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 16 Jan 2002 20:29:02 +0000 (20:29 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 16 Jan 2002 20:29:02 +0000 (20:29 +0000)
commitcf97080fa4afafb0d65e998a1c115cc8066d9118
treed8c44904b390c7163c37a645dba647f4ad12a238
parent0f2d949c1e60e147ed032d9eeedc9234429dfa66
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.
src/backend/access/heap/tuptoaster.c
src/backend/utils/time/tqual.c
src/include/utils/tqual.h