pgsql: Update minimum recovery point on truncation.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Update minimum recovery point on truncation.
Date: 2012-12-10 16:31:50
Message-ID: E1Ti6Gk-0002Mp-0b@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/9ba0361f099e1d9827e9da1df95652d83ac8b973

Modified Files
--------------
src/backend/access/transam/xact.c | 43 +++++++++++++++++++++++++++---------
src/backend/catalog/storage.c | 18 +++++++++++++++
2 files changed, 50 insertions(+), 11 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2012-12-11 03:41:24 pgsql: doc: Remove blastwave.org link
Previous Message Heikki Linnakangas 2012-12-10 16:31:49 pgsql: Update minimum recovery point on truncation.