pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Tender Wang <tndrwang@gmail.com>
Cc: 1026592243@qq.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18377: Assert false in "partdesc->nparts >= pinfo->nparts", fileName="execPartition.c", lineNumber=1943
Date: Fri, 21 Jun 2024 14:39:11 +0200
Message-ID: <202406211239.45x55ljrrhcn@alvherre.pgsql> (raw)
In-Reply-To: <202406121953.gfdukghim5d2@alvherre.pgsql>

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)

Attachments:

  [text/x-diff] v4-0001-Fix-partition-pruning-setup-during-DETACH-CONCURR.patch (0B, ../202406211239.45x55ljrrhcn@alvherre.pgsql/2-v4-0001-Fix-partition-pruning-setup-during-DETACH-CONCURR.patch)
  download

view thread (23+ messages)  latest in thread

Message-ID: <202406211239.45x55ljrrhcn@alvherre.pgsql>
Permalink:  ../202406211239.45x55ljrrhcn@alvherre.pgsql/
Also on:    postgresql.org/message-id/202406211239.45x55ljrrhcn@alvherre.pgsql

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@alvh.no-ip.org, tndrwang@gmail.com, 1026592243@qq.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18377: Assert false in "partdesc->nparts >= pinfo->nparts", fileName="execPartition.c", lineNumber=1943
  In-Reply-To: <202406211239.45x55ljrrhcn@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox