Have TRUNCATE advance the affected table's relfrozenxid to RecentXmin, to
Alvaro Herrera <alvherre@alvh.no-ip.org>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/index.c | modified | +11 −3 |
| src/backend/commands/tablecmds.c | modified | +3 −3 |
| src/include/catalog/index.h | modified | +2 −2 |