In log_newpage_range(), heed forkNum and page_std arguments.
authorNoah Misch <noah@leadboat.com>
Sat, 21 Mar 2020 16:38:26 +0000 (09:38 -0700)
committerNoah Misch <noah@leadboat.com>
Sat, 21 Mar 2020 16:38:26 +0000 (09:38 -0700)
commitd3e572855be1e15c7e0a6adc8db52b9fd4f71be0
tree5e9a094d4c95bc9c40a389b9f9e16344d9aef746
parente629a01f6973688f77ecff964d9d6bea9bc4b374
In log_newpage_range(), heed forkNum and page_std arguments.

The function assumed forkNum=MAIN_FORKNUM and page_std=true, ignoring
the actual arguments.  Existing callers passed exactly those values, so
there's no live bug.  Back-patch to v12, where the function first
appeared, because another fix needs this.

Discussion: https://postgr.es/m/20191118045434.GA1173436@rfd.leadboat.com
src/backend/access/transam/xloginsert.c