Skip site navigation (1) Skip section navigation (2)

pgsql: Have TRUNCATE advance the affected table's relfrozenxid to

From: alvherre(at)postgresql(dot)org (Alvaro Herrera)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Have TRUNCATE advance the affected table's relfrozenxid to
Date: 2007-05-16 17:28:20
Message-ID: 20070516172820.A050F9FB3FC@postgresql.org (view raw or flat)
Thread:
Lists: 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

Next:From: Tom LaneDate: 2007-05-16 19:10:10
Subject: Re: pgsql: Fix a bunch of bad grammar in the docs: "<link>, which see for
Previous:From: Alvaro HerreraDate: 2007-05-16 16:36:56
Subject: pgsql: Have the rewriteheap code freeze old tuples.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group