Re: BUG #18377: Assert false in "partdesc->nparts >= pinfo->nparts", fileName="execPartition.c", lineNumber=1943
Alvaro Herrera <alvherre@alvh.no-ip.org>
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: David Rowley <dgrowleyml@gmail.com>
Cc: 1026592243@qq.com, pgsql-bugs@lists.postgresql.org
Date: 2024-03-19T12:33:01Z
Lists: pgsql-bugs
On 2024-Mar-06, David Rowley wrote: > On Tue, 5 Mar 2024 at 20:17, PG Bug reporting form > <noreply@postgresql.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. Oh, ugh, apologies, I hadn't noticed this report. I'll have a look ... -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/
Commits
-
Fix partition pruning setup during DETACH CONCURRENTLY
- dbca3469ebf8 17.0 landed
- fb0fb0740fb6 15.8 landed
- 96105ebfe218 16.4 landed
- 66e569f5022b 14.13 landed
- 27162a64b386 17.0 landed
-
Revert "Fix partition pruning setup during DETACH CONCURRENTLY"
- b0ea16528cda 17.0 landed
-
Fix creation of partition descriptor during concurrent detach
- c2fab70248d8 17.0 landed
- bf78abebf3e5 16.4 landed
- 5dcaefc6a0cf 14.13 landed
- 03c8cdbb7e75 15.8 landed
-
Use MyBackendType in more places to check what process this is
- 393b5599e517 17.0 cited