Обсуждение: pgsql: Have the rewriteheap code freeze old tuples.

Поиск
Список
Период
Сортировка

pgsql: Have the rewriteheap code freeze old tuples.

От
alvherre@postgresql.org (Alvaro Herrera)
Дата:
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/access/heap:
        rewriteheap.c (r1.3 -> r1.4)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/heap/rewriteheap.c.diff?r1=1.3&r2=1.4)