pageinspect: Fix memory context allocation of page in brin_revmap_data()
authorMichael Paquier <michael@paquier.xyz>
Wed, 16 Mar 2022 03:29:39 +0000 (12:29 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 16 Mar 2022 03:29:39 +0000 (12:29 +0900)
commit4477dcb207c23f808737a5059157a085212f55e9
tree70c2a8902564d7ed75d57c646fba2de197701001
parent501c66c81b755583fa516c88e1cc7c760dc88bd5
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
contrib/pageinspect/brinfuncs.c