Re: Standbys, txid_current_snapshot, wraparound - Mailing list pgsql-hackers

From Marko Kreen
Subject Re: Standbys, txid_current_snapshot, wraparound
Date
Msg-id 20120329101231.GA27955@gmail.com
Whole thread Raw
In response to Re: Standbys, txid_current_snapshot, wraparound  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: Standbys, txid_current_snapshot, wraparound  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On Thu, Mar 29, 2012 at 10:37:54AM +0100, Simon Riggs wrote:
> When the standby receives the checkpoint record, it stores the
> information in 2 places:
> i) directly into ControlFile->checkPointCopy
> ii) and then into XLogCtl when a safe restartpoint occurs

In RecoveryRestartPoint() I see:

- memcpy(&XLogCtl->lastCheckPoint, checkPoint, sizeof(CheckPoint));

but I still don't see how are the ckptXid* values updated?

What am I missing?

-- 
marko



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Standbys, txid_current_snapshot, wraparound
Next
From: Robert Haas
Date:
Subject: Re: patch for parallel pg_dump