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: Tender Wang <tndrwang@gmail.com>
Cc: 1026592243@qq.com, pgsql-bugs@lists.postgresql.org
Date: 2024-06-21T12:39:11Z
Lists: pgsql-bugs
Attachments
I noticed further problems with this patch, and it turned out to have other bugs that would manifest under very high concurrency of detach and attach (I think the problem was a detach followed by an immediate attach of the same partition, or perhaps it was an attach of a neighboring partition), so I spent more time ironing those out and ended up with the following, which I'm rather embarrased not to have had as the previous version because it looks simpler and more obvious. Unless further surprises arise soon, I'll push this soonish. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Ellos andaban todos desnudos como su madre los parió, y también las mujeres, aunque no vi más que una, harto moza, y todos los que yo vi eran todos mancebos, que ninguno vi de edad de más de XXX años" (Cristóbal Colón)
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