Have TRUNCATE advance the affected table's relfrozenxid to RecentXmin, to

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 90cbc63fd10adaeb01c3180156e0e48eee08b5ed
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2007-05-16T17:28:20Z
Releases: 8.3.0
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.

Files

PathChange+/−
src/backend/catalog/index.c modified +11 −3
src/backend/commands/tablecmds.c modified +3 −3
src/include/catalog/index.h modified +2 −2