pgsql: In log_newpage_range(), heed forkNum and page_std arguments.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: In log_newpage_range(), heed forkNum and page_std arguments.
Date: 2020-03-21 16:45:57
Message-ID: E1jFhG1-0000Uh-Az@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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
------
master

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

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-03-21 19:04:51 Re: pgsql: Skip WAL for new relfilenodes, under wal_level=minimal.
Previous Message Amit Kapila 2020-03-21 03:27:07 pgsql: Allow page lock to conflict among parallel group members.