pgsql: pageinspect: Fix memory context allocation of page in brin_revma - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: pageinspect: Fix memory context allocation of page in brin_revma
Date
Msg-id E1nUKN0-000GYC-DP@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
pageinspect: Fix memory context allocation of page in brin_revmap_data()

This caused the function to fail, as the aligned copy of the raw page
given by the function caller was not saved in the correct memory
context, which needs to be multi_call_memory_ctx in this case.

Issue introduced by 076f4d9.

Per buildfarm members sifika, mylodon and longfin.  I have reproduced
that locally with macos.

Discussion: https://postgr.es/m/YjFPOtfCW6yLXUeM@paquier.xyz
Backpatch-through: 10

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/028a3c6b1cb1933a17bab5bdf22d7431357763b7

Modified Files
--------------
contrib/pageinspect/brinfuncs.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: Fix documentation typo in commit 5e6368b4.
Next
From: Thomas Munro
Date:
Subject: pgsql: Fix race between DROP TABLESPACE and checkpointing.