pageinspect: Fix memory context allocation of page in brin_revmap_data()

Michael Paquier <michael@paquier.xyz>

Commit: 07e343513b85ea152f4cc2d3afeb2d4c87bbda77
Author: Michael Paquier <michael@paquier.xyz>
Date: 2022-03-16T03:30:07Z
Releases: 10.21
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

Files

PathChange+/−
contrib/pageinspect/brinfuncs.c modified +3 −3

Discussion

Cited messages not in the archive: YjFPOtfCW6yLXUeM@paquier.xyz