pgsql: Have TRUNCATE advance the affected table's relfrozenxid to - Mailing list pgsql-committers

From alvherre@postgresql.org (Alvaro Herrera)
Subject pgsql: Have TRUNCATE advance the affected table's relfrozenxid to
Date
Msg-id 20070516172820.A050F9FB3FC@postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Have TRUNCATE advance the affected table's relfrozenxid to RecentXmin, to
avoid a later needless VACUUM for Xid-wraparound purposes.  We can do this
since the table is known to be left empty, so no Xid remains on it.

Per discussion.

Modified Files:
--------------
    pgsql/src/backend/catalog:
        index.c (r1.282 -> r1.283)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/catalog/index.c.diff?r1=1.282&r2=1.283)
    pgsql/src/backend/commands:
        tablecmds.c (r1.223 -> r1.224)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/tablecmds.c.diff?r1=1.223&r2=1.224)
    pgsql/src/include/catalog:
        index.h (r1.73 -> r1.74)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/catalog/index.h.diff?r1=1.73&r2=1.74)

pgsql-committers by date:

Previous
From: alvherre@postgresql.org (Alvaro Herrera)
Date:
Subject: pgsql: Have the rewriteheap code freeze old tuples.
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Fix a bunch of bad grammar in the docs: ", which see for