On Sun, Jun 2, 2024 at 10:57 AM PG Bug reporting form
<noreply(at)postgresql(dot)org> wrote:
> With debug logging added, I confirmed that on a higher lever, inside
> btbuild(), buildstate.spool->sortstate->memtuples really contains two
> tuples pointing to blkno 0, offset 3 after the _bt_spools_heapscan() call.
>
> Reproduced on REL_10_STABLE .. master.
This is a known issue:
https://www.postgresql.org/message-id/CAH2-WzkjjCoq5Y4LeeHJcjYJVxGm3M3SAWZ0%3D6J8K1FPSC9K0w%40mail.gmail.com
(We really should have a bug tracker to track older known bugs such as this.)
--
Peter Geoghegan