Skip site navigation (1) Skip section navigation (2)

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:49
Message-ID: E1Ti6Gj-0002Ml-VJ@gemulon.postgresql.org (view raw or flat)
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_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/fbe285ae83628cf73a8e1ad04873a4a4b7ce56d3

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


pgsql-committers by date

Next:From: Heikki LinnakangasDate: 2012-12-10 16:31:50
Subject: pgsql: Update minimum recovery point on truncation.
Previous:From: Heikki LinnakangasDate: 2012-12-10 16:30:59
Subject: pgsql: Fix the tracking of min recovery point timeline.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group