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 <[email protected]> Reviewed-by: Kyotaro Horiguchi <[email protected]> Reviewed-by: Álvaro Herrera <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/9ade3c09a5d11f4be91b5e180832abd2dbc2c55d Modified Files -------------- src/backend/access/transam/xlog.c | 4 ++++ src/test/recovery/t/026_overwrite_contrecord.pl | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-)
