Why not utilize the pglogical plugin from 2ndQuadrant? They demonstrate your use case on the webpage for it and it is free. Phillip Couto
On 13 January 2017 at 12:00, Stuart Bishop <stuart@xxxxxxxxxxxxxxxx> wrote:
Ah, that's a nice option, didn't know about pg_rewind! I need to read about it some more... So far, it seems like the best one.
I don't think that would solve the main problem. If I set up WAL shipping, then the secondary server will periodically need to ingest the logs, right? And then I'm either back to running it for a while and rewinding it, as you've said, or basically restoring it from scratch every time which will be slower than just doing a base backup, right? |