]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pageinspect: Fix memory context allocation of page in brin_revmap_data()
authorMichael Paquier <michael@paquier.xyz>
Wed, 16 Mar 2022 03:30:02 +0000 (12:30 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 16 Mar 2022 03:30:02 +0000 (12:30 +0900)
commit09c97746d00065ff5c62d157b8f95d1659850059
tree209f9741319a481b8aeb6e8eaca4de17a288397a
parent2389ee8dd800b7e95eb6ee8238e67db88c60d996
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