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:49 +0000
Message-ID: <E1Ti6Gj-0002Mj-Th@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
------
master

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

Modified Files
--------------
src/backend/access/transam/xact.c |   43 +++++++++++++++++++++++++++---------
src/backend/catalog/storage.c     |   18 +++++++++++++++
2 files changed, 50 insertions(+), 11 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: <E1Ti6Gj-0002Mj-Th@gemulon.postgresql.org>
Permalink:  ../E1Ti6Gj-0002Mj-Th@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1Ti6Gj-0002Mj-Th@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: <E1Ti6Gj-0002Mj-Th@gemulon.postgresql.org>
  References: <E1Ti6Gj-0002Mj-Th@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