pgsql: Remove rare corner case for data loss when triggering standby se

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove rare corner case for data loss when triggering standby se
Date: 2011-02-08 14:53:05
Message-ID: E1PmowD-0003Bk-5I@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove rare corner case for data loss when triggering standby server.
If the standby was streaming when trigger file arrives, check also in the
archive for additional WAL files. This is a corner case since it is
unlikely that we would trigger a failover while the master is still
available and sending data to standby, while at the same time running in
archive mode and also while the streaming standby has fallen behind archive.
Someone would eventually be unlucky; we must plug all gaps however small.

Fujii Masao

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=faa0550572583f51dba25611ab0f1d1c31de559b

Modified Files
--------------
src/backend/access/transam/xlog.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2011-02-08 16:16:21 pgsql: UINT64_MAX isn't defined on MSVC.
Previous Message Simon Riggs 2011-02-08 12:24:11 pgsql: Extend ALTER TABLE to allow Foreign Keys to be added without ini