pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@postgresql.org
Subject: pgsql: Update minimum recovery point on truncation.
Date: Mon, 10 Dec 2012 16:31:50 +0000
Message-ID: <E1Ti6Gk-0002Mt-3U@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/7e0d8d8457d922a63292c39862738969cac6c418

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


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (12+ messages)  latest in thread

Message-ID: <E1Ti6Gk-0002Mt-3U@gemulon.postgresql.org>
Permalink:  ../E1Ti6Gk-0002Mt-3U@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1Ti6Gk-0002Mt-3U@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Update minimum recovery point on truncation.
  In-Reply-To: <E1Ti6Gk-0002Mt-3U@gemulon.postgresql.org>
  References: <E1Ti6Gk-0002Mt-3U@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox