pgsql: Start Hot Standby faster when initial snapshot is incomplete.

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Start Hot Standby faster when initial snapshot is incomplete.
Date: 2011-11-02 08:46:53
Message-ID: E1RLWTF-0004cm-8y@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Start Hot Standby faster when initial snapshot is incomplete.
If the initial snapshot had overflowed then we can start whenever
the latest snapshot is empty, not overflowed or as we did already,
start when the xmin on primary was higher than xmax of our starting
snapshot, which proves we have full snapshot data.

Bug report by Chris Redekop

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/93b915b3d1c1a325a6458f9553a37b89d244262b

Modified Files
--------------
src/backend/storage/ipc/procarray.c | 50 +++++++++++++++++++++-------------
1 files changed, 31 insertions(+), 19 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2011-11-02 08:48:09 pgsql: Start Hot Standby faster when initial snapshot is incomplete.
Previous Message Simon Riggs 2011-11-02 08:39:29 pgsql: Remove spurious entry from missed catch while patch juggling