From: | Simon Riggs <simon(at)2ndQuadrant(dot)com> |
---|---|
To: | Marko Kreen <markokr(at)gmail(dot)com> |
Cc: | Daniel Farina <daniel(at)heroku(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Andrey Velikoredchanin <uncleandyv(at)gmail(dot)com> |
Subject: | Re: Standbys, txid_current_snapshot, wraparound |
Date: | 2012-03-29 11:06:50 |
Message-ID: | CA+U5nMLGtMXQOi5iGBsq6utXYCMMLvNUtZUsWuPedhyDHjvBVA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Mar 29, 2012 at 11:12 AM, Marko Kreen <markokr(at)gmail(dot)com> wrote:
> 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?
It's updated on the master and then copied into place.
Patch coming in a few hours.
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2012-03-29 11:13:57 | Re: Re: pg_stat_statements normalisation without invasive changes to the parser (was: Next steps on pg_stat_statements normalisation) |
Previous Message | Boszormenyi Zoltan | 2012-03-29 10:59:40 | Re: ECPG FETCH readahead |