pgsql: In log_newpage_range(), heed forkNum and page_std arguments. - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: In log_newpage_range(), heed forkNum and page_std arguments.
Date
Msg-id E1jFhG1-0000Ut-DG@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a5abec521c5d40fefbbb42af093fa9fd508b2614

Modified Files
--------------
src/backend/access/transam/xloginsert.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Allow page lock to conflict among parallel group members.
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Skip WAL for new relfilenodes, under wal_level=minimal.