Back-patch log_newpage_range().
authorNoah Misch <[email protected]>
Sat, 21 Mar 2020 16:38:33 +0000 (09:38 -0700)
committerNoah Misch <[email protected]>
Sat, 21 Mar 2020 16:38:35 +0000 (09:38 -0700)
commite0dd086414f782d9200ad525a1643a9f57a2b497
treebf07eafdd96ba96bbcdb42b21e3e9047e6214317
parent978da2a95597c97c52b14a27ba29873051ffc59d
Back-patch log_newpage_range().

Back-patch a subset of commit 9155580fd5fc2a0cbb23376dfca7cd21f59c2c7b
to v11, v10, 9.6, and 9.5.  Include the latest repairs to this function.
Use a new XLOG_FPI_MULTI value instead of reusing XLOG_FPI.  That way,
if an older server reads WAL from this function, that server will PANIC
instead of applying just one page of the record.  The next commit adds a
call to this function.

Discussion: https://postgr.es/m/20200304.162919.898938381201316571[email protected]
src/backend/access/rmgrdesc/xlogdesc.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xloginsert.c
src/backend/replication/logical/decode.c
src/include/access/xloginsert.h
src/include/catalog/pg_control.h