]> granicus.if.org Git - postgresql/commit
Have the rewriteheap code freeze old tuples. This is safe because it is only
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 16 May 2007 16:36:56 +0000 (16:36 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 16 May 2007 16:36:56 +0000 (16:36 +0000)
commitdfed0012bc03c3cda94e75af54e9c774556c9787
tree162d7cdb5627e529bee1d69d36bfefc16c8aff74
parentd365ce1f5c90278c577ffe52a80adebee9cb3c33
Have the rewriteheap code freeze old tuples.  This is safe because it is only
applied to live tuples older than a recent Xmin, not to tuples that may be part
of an update chain.  Those still keep their original markings.

This patch makes it possible for CLUSTER to advance relfrozenxid, thus avoiding
the need of vacuuming the table for Xid wraparound purposes.  That will be
patched separately.

Patch from Heikki Linnakangas.
src/backend/access/heap/rewriteheap.c