Re: [HACKERS] exitArchiveRecovery woes

2014-12-18 Thread Robert Haas
On Thu, Dec 18, 2014 at 10:49 AM, Heikki Linnakangas wrote: > On 12/18/2014 03:53 PM, Robert Haas wrote: >> On Wed, Dec 17, 2014 at 8:40 AM, Heikki Linnakangas >> wrote: >>> >>> At the end of archive recovery, we copy the last segment from the old >>> timeline, to initialize the first segment on

Re: [HACKERS] exitArchiveRecovery woes

2014-12-18 Thread Heikki Linnakangas
On 12/18/2014 03:53 PM, Robert Haas wrote: On Wed, Dec 17, 2014 at 8:40 AM, Heikki Linnakangas wrote: At the end of archive recovery, we copy the last segment from the old timeline, to initialize the first segment on the new timeline. For example, if the timeline switch happens in the middle of

Re: [HACKERS] exitArchiveRecovery woes

2014-12-18 Thread Robert Haas
On Wed, Dec 17, 2014 at 8:40 AM, Heikki Linnakangas wrote: > At the end of archive recovery, we copy the last segment from the old > timeline, to initialize the first segment on the new timeline. For example, > if the timeline switch happens in the middle of WAL segment > 00010005,

[HACKERS] exitArchiveRecovery woes

2014-12-17 Thread Heikki Linnakangas
At the end of archive recovery, we copy the last segment from the old timeline, to initialize the first segment on the new timeline. For example, if the timeline switch happens in the middle of WAL segment 00010005, the whole 00010005 segment is copied to become