OSDN Git Service

Have TRUNCATE advance the affected table's relfrozenxid to RecentXmin, to
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 16 May 2007 17:28:20 +0000 (17:28 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 16 May 2007 17:28:20 +0000 (17:28 +0000)
commit90cbc63fd10adaeb01c3180156e0e48eee08b5ed
tree07fc1b8f4efd7d6c4e469ea41a7f9f13b4a23ac9
parentdfed0012bc03c3cda94e75af54e9c774556c9787
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.
src/backend/catalog/index.c
src/backend/commands/tablecmds.c
src/include/catalog/index.h