postgresql/src
Alvaro Herrera 199cd7b59a
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 <simseih@amazon.com>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Discussion: https://postgr.es/m/44D259DE-7542-49C4-8A52-2AB01534DCA9@amazon.com
2022-03-23 18:22:10 +01:00
..
backend Fix "missing continuation record" after standby promotion 2022-03-23 18:22:10 +01:00
bin Add missing dependency of pg_dumpall to WIN32RES. 2022-03-22 08:28:54 -07:00
common Fix buffer overrun in unicode string normalization with empty input 2021-11-11 15:02:01 +09:00
fe_utils Clean up assorted failures under clang's -fsanitize=undefined checks. 2022-03-03 18:13:24 -05:00
include Fix bogus casting in BlockIdGetBlockNumber(). 2022-03-03 19:03:50 -05:00
interfaces Allow root-owned SSL private keys in libpq, not only the backend. 2022-03-02 11:57:02 -05:00
makefiles Select CFLAGS_SL at configure time, not in platform-specific Makefiles. 2019-10-21 12:32:36 -04:00
pl Disallow execution of SPI functions during plperl function compilation. 2022-02-25 17:40:45 -05:00
port Stamp 11.15. 2022-02-07 16:20:23 -05:00
template Further tweaking of PG_SYSROOT heuristics for macOS. 2021-01-20 12:07:41 -05:00
test Fix "missing continuation record" after standby promotion 2022-03-23 18:22:10 +01:00
timezone Update time zone data files to tzdata release 2021e. 2021-10-29 11:38:53 -04:00
tools Allow clean.bat to be run from anywhere 2022-01-20 10:21:12 -05:00
tutorial tutorial: land height is "elevation", not "altitude" 2021-03-10 20:25:18 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Fix prove_installcheck to use correct paths when used with PGXS 2021-07-01 08:47:21 -04:00
Makefile.shlib Ensure static libraries have correct mod time even if ranlib messes it up. 2018-11-29 15:53:44 -05:00
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00