Fix single-record reads to use restore_command if available in pg_rewind
Michael Paquier <michael@paquier.xyz>
Fix single-record reads to use restore_command if available in pg_rewind readOneRecord() is used now when looking for a checkpoint record to check if the target server is an ancestor of the source across multiple timelines, and using a restore_command if available improves the stability of the operation. This part was missed in a7e8ece. Reported-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/20200421.150830.1410714948345179794.horikyota.ntt@gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_rewind/parsexlog.c | modified | +3 −1 |
| src/bin/pg_rewind/pg_rewind.c | modified | +2 −1 |
| src/bin/pg_rewind/pg_rewind.h | modified | +1 −1 |
Discussion
- forgotten initalization of a variable 5 messages · 2020-04-21 → 2020-04-22