On Tue, 5 Mar 2024 at 20:17, PG Bug reporting form
<noreply(at)postgresql(dot)org> wrote:
> 1943 Assert(partdesc->nparts >= pinfo->nparts);
> (gdb) p partdesc->nparts
> $1 = 1
> (gdb) p pinfo->nparts
> $2 = 2
The following comment says this shouldn't happen, but apparently it can:
* Because we request detached partitions to be included, and
* detaching waits for old transactions, it is safe to assume that
* no partitions have disappeared since this query was planned.
Added Álvaro as he knows this area best.
David