Re: [GENERAL] Initing a new replica

2012-06-26 Thread Cody Cutrer
After thinking some more, an expansion on the third possibility: * Call pg_start_backup on the master. Checkpoint the non-participating replica. Copy data dirs from non-participating replica. Copy xlogs from master. Call pg_stop_backup on the master. Copy final xlogs from master. This would move

Re: [GENERAL] Initing a new replica

2012-06-26 Thread John R Pierce
On 06/26/12 9:04 PM, Cody Cutrer wrote: * Instead of using pg_basebackup, manually call pg_start_backup and pg_stop_backup against the new master, and rsync the data over, since presumably little has changed since a timeline divergence I believe thats the correct method. -- john r pierce

[GENERAL] Initing a new replica

2012-06-26 Thread Cody Cutrer
I've got a few questions about initing a new replica. We have a modestly large DB cluster with a master and two replicas running with streaming replication. We tend to switch which one is the master fairly often, shuffling hardware, upgrading kernels, etc. However, every time we fail over, we have