• Tom Lane's avatar
    Fix gin_leafpage_items(). · 367b99bb
    Tom Lane authored
    On closer inspection, commit 84ad68d6 broke gin_leafpage_items(),
    because the aligned copy of the page got palloc'd in a short-lived
    context whereas it needs to be in the SRF's multi_call_memory_ctx.
    This was not exposed by the regression test, because the regression
    test doesn't actually exercise the function in a meaningful way.
    Fix the code bug, and extend the test in what I hope is a portable
    fashion.
    367b99bb
gin.sql 709 Bytes