pgsql: Fix "missing continuation record" after standby promotion
pgsql: Fix "missing continuation record" after standby promotion
От:
Alvaro Herrera <alvherre@alvh.no-ip.org>
Дата:
Fix "missing continuation record" after standby promotion Invalidate abortedRecPtr and missingContrecPtr after a missing continuation record is successfully skipped on a standby. This fixes a PANIC caused when a recently promoted standby attempts to write an OVERWRITE_RECORD with an LSN of the previously read aborted record. Backpatch to 10 (all stable versions). Author: Sami Imseih Reviewed-by: Kyotaro Horiguchi Reviewed-by: Álvaro Herrera Discussion: https://postgr.es/m/44D259DE-7542-49C4-8A52-2AB01534DCA9@amazon.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9d92582abf918215d27659d45a4c9e78bda50aff Modified Files -------------- src/backend/access/transam/xlogrecovery.c | 4 ++++ src/test/recovery/t/026_overwrite_contrecord.pl | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-)