model-writtenrun 1860 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Madhukar reported that AioCtlShmemSize() omitted the io_handles pointer from shared-memory accounting and submitted a patch using sizeof(PgAioCtl) in #1.
- Matthias van de Meent approved the patch and suggested that the calculation was left over from when io_handles was an inline array in #2.
- Michael Paquier agreed that an earlier flexible-array member likely explained the oversight and said he would apply the fix in #3.
- Andres Freund confirmed that explanation and recalled that separating the allocations likely made them more visible in pg_shmem_allocations, closing the discussion with thanks in #4.
- Michael Paquier subsequently committed the patch from #1 unchanged as 158c48303e, with a backpatch through PostgreSQL 18; the commit explains that overall shared-memory overestimation likely masked the error, and no further work remained in the thread.