Re: pg_rewind: confused about recovery.conf/restore_command - Mailing list pgsql-admin

From Rui DeSousa
Subject Re: pg_rewind: confused about recovery.conf/restore_command
Date
Msg-id 6EFCAFA0-3555-4F44-A059-3361586984D4@icloud.com
Whole thread Raw
In response to pg_rewind: confused about recovery.conf/restore_command  (Jerry Sievers <gsievers19@comcast.net>)
Responses Re: pg_rewind: confused about recovery.conf/restore_command  (Jerry Sievers <gsievers19@comcast.net>)
List pgsql-admin
Hi Jerry,

That has been my experience as well; pg_rewind does not fetch the WAL files.

You can use following parameter to keep the most recent logs; i.e. a couple of hours worth.  That will allow pg_rewind to work during that time frame —  If it is still missing a WAL file or two you can manually copy them over in a pinch.

 wal_keep_segments 


p.s. I switched to using ZFS snapshots instead.

pgsql-admin by date:

Previous
From: Jerry Sievers
Date:
Subject: pg_rewind: confused about recovery.conf/restore_command
Next
From: Azimuddin Mohammed
Date:
Subject: Postgres HA