aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2020-12-03 15:57:48 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2020-12-03 15:57:48 +0200
commit2b4f3130382fe2f8705863e4d38589d4d69cd695 (patch)
tree0e153e14959bd6af5dc4089eed4ead819f64d800 /src/backend/access/gist/gist.c
parent6114040711affa2b0bcf47fa2791187daf8455fb (diff)
downloadpostgresql-2b4f3130382fe2f8705863e4d38589d4d69cd695.tar.gz
postgresql-2b4f3130382fe2f8705863e4d38589d4d69cd695.zip
Fix pg_rewind bugs when rewinding a standby server.
If the target is a standby server, its WAL doesn't end at the last checkpoint record, but at minRecoveryPoint. We must scan all the WAL from the last common checkpoint all the way up to minRecoveryPoint for modified pages, and also consider that portion when determining whether the server needs rewinding. Backpatch to all supported versions. Author: Ian Barwick and me Discussion: https://www.postgresql.org/message-id/CABvVfJU-LDWvoz4-Yow3Ay5LZYTuPD7eSjjE4kGyNZpXC6FrVQ%40mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions