Update minimum recovery point on truncation.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: fbe285ae83628cf73a8e1ad04873a4a4b7ce56d3
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2012-12-10T14:57:08Z
Releases: 9.2.3
Update minimum recovery point on truncation.

If a file is truncated, we must update minRecoveryPoint. Once a file is
truncated, there's no going back; it would not be safe to stop recovery
at a point earlier than that anymore.

Per report from Kyotaro HORIGUCHI. Backpatch to 8.4. Before that,
minRecoveryPoint was not updated during recovery at all.

Files

PathChange+/−
src/backend/access/transam/xact.c modified +32 −11
src/backend/catalog/storage.c modified +18 −0