Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sKdY7-00BOgl-IX for pgsql-bugs@arkaria.postgresql.org; Fri, 21 Jun 2024 12:39:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sKdY5-0006kI-PS for pgsql-bugs@arkaria.postgresql.org; Fri, 21 Jun 2024 12:39:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sKdY4-0006k9-Vt for pgsql-bugs@lists.postgresql.org; Fri, 21 Jun 2024 12:39:25 +0000 Received: from wfhigh4-smtp.messagingengine.com ([64.147.123.155]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sKdXx-002Pn2-EL for pgsql-bugs@lists.postgresql.org; Fri, 21 Jun 2024 12:39:23 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.west.internal (Postfix) with ESMTP id 6373418000B6; Fri, 21 Jun 2024 08:39:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 21 Jun 2024 08:39:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1718973555; x= 1719059955; bh=LNfK5gsD6thvt65rKRmwP6sStEtNkLiCZrCz2qWkX5k=; b=p 5qMjvhz25OFJ6QMiDHuHducqn8ESPrXhVE8fDxomp7053BilyGERnn0N8NiIHwDE s6+htt685Tj/utrJaLI1hfldi21Y20uNDGGvZ8QKUqv4kAE3hdNL1GBTxa/GqS6F vq0b/8iLmEnOUiFXqN11h+ta9cWe0uRpUbaC2hCc6wI4QaexqAaDwu8Rrei/nxdZ BkMfNx7kGJdyv+pK7D5rp0ONER8veUH0wS9YiEl4rwp1D0AOzq+Pw6yQx2ocgLJI dHMTUpZY/LZhKxvyi/wM0kndy45mBPhXkxQQ38oQlU5uf8kBpN4wFUD0XnNG+i0X ZCYak0pQ63vNR2Vd3qusw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefgedgheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesmhekreertddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepudelkeekgfdttdettdekgfduvdeiffelteegjeeihfet heekveeftedtuddvhfeunecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 21 Jun 2024 08:39:14 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1718973551; bh=dTkNmafivD74wK+jtCgSWiOkdHmdecummRQgSS78eMk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=UOr3vpiHNCBHa3RLLUd/Cy2xX4lfJRNVpXoA/iQTt4DiY6n0oYNWsY3KdRmOPaAmj fYThvgelLcLDAUWKYB3MqH/+ACVQeF1Q3IMNMOvEysx2l3ZDGOZhmvderSNTlEg0BS tG2CXZKCzC5NhukNM9ienfkzTnLlpVu8hhMn3BZmiAw89onAHjUwnkWNTUZD8IRSfq 1t+h8IfFm1mXI8dsWAdCAvcmO0CV4Yj0wzMpYyGCl0I8kIwCtdgJjSpB/4La198C7y yhoE9R05R4MotDVL/t6h2fvOh37/weuRc66/KvaMwLUL9lP7C1F1/tWWkgzIDs30aa RclDYvjYJwD3w== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 89297527; Fri, 21 Jun 2024 05:39:11 -0700 (PDT) Date: Fri, 21 Jun 2024 14:39:11 +0200 From: Alvaro Herrera To: Tender Wang Cc: 1026592243@qq.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18377: Assert false in "partdesc->nparts >= pinfo->nparts", fileName="execPartition.c", lineNumber=1943 Message-ID: <202406211239.45x55ljrrhcn@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="q7qwfurv5zp6qejb" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202406121953.gfdukghim5d2@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --q7qwfurv5zp6qejb Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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) --q7qwfurv5zp6qejb Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="v4-0001-Fix-partition-pruning-setup-during-DETACH-CONCURR.patch" Content-Transfer-Encoding: 8bit