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 1sMtQN-005MNf-Dx for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Jun 2024 18:00:47 +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 1sMtQL-00CRgL-JB for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Jun 2024 18:00:45 +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 1sMtQL-00CRdm-6o for pgsql-bugs@lists.postgresql.org; Thu, 27 Jun 2024 18:00:45 +0000 Received: from fout2-smtp.messagingengine.com ([103.168.172.145]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sMtQI-003QHD-Mm for pgsql-bugs@lists.postgresql.org; Thu, 27 Jun 2024 18:00:44 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id C7229138021F; Thu, 27 Jun 2024 14:00:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 27 Jun 2024 14:00:41 -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=1719511241; x= 1719597641; bh=zyyIuyCU+r/DFSWP33XhKCxhbGEiG6e9BVEkL6nCnC0=; b=J MdfQ8ukx06XIA1/us8GBYJpKc/MODfE6Qso9ScCuo2MCN0nqnZHFi6FWXJiNJt/6 n31rV09Jaivwptrme0Q0PRQoRwXhExPX3WL2fCVDvEwAfA2HDbodrmG8C35vcWeb Zcutfy88IH2mNtcxKOx/ASgRvTCrL/5EVZ+LL9yfFHlMKKXPxW5Lp7pMCJ6iUTMV eZPMOYb+GgokaDqQBQG56LSCdJ3L/ym/Ru4+sU7paXD1wWQguWrrW4wv8LsC5Mno 1mgnT5bU1Bn4cbKQKvCS87+NcWp2BobXUijA4O39Sy4Dc2TxOi7wp6NSA0HN8YXs yX1dhc2ZOTryDvPKj1Dsw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrtdeggdduvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvddufedtgfevvdfgffeghfevuddvgefhudegudffhfeg udduteettdfhvdegffehnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh dpthifihhtthgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 27 Jun 2024 14:00:41 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1719511238; bh=gRiHf6B0n58L3kUXYX2DXh6Ka89zQ6/fDCLtPr5I+EY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=hmenryr2r836P+WLnebcFUPkrYMmg6tB1BY645pY1Xpad6f0vHtI2u9PcxHWk/2xq C3SXCJQWBqZtMMBgM2d5FHMrk7w2FEC2mDwpUq5Z0y8rez4svZaNss4KJ5ccY2Rka3 Hv/fX6Pqk3E3vB95he18Lbktko3gzfq6Wj7/ruSgUkl8FiaQFlFkbAeN0tomjuOmlu 30PRkxsJ/PrJR4opRnSymdOuiql0OT4XzMBMRJapzdka5X9l75YJzvhV/LBXo/CE96 tQjj2UHE9lcHV5IecgCpDS4HmZRdo4H+1A1raTiep48GFgXGoOdoo5GhwJsafpl35A VkJs7qoNMnvpA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 69DE952B; Thu, 27 Jun 2024 11:00:38 -0700 (PDT) Date: Thu, 27 Jun 2024 20:00:38 +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: <202406271800.zp735zjeik3t@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Apr-23, Tender Wang wrote: > I found one self-contradiction comments in CreatePartitionPruneState(): > > /* For data reading, executor always omits detached partitions */ > if (estate->es_partition_directory == NULL) > estate->es_partition_directory = > CreatePartitionDirectory(estate->es_query_cxt, false); > > Should it be " not omits" if I didn't misunderstand. Because we pass false > to the function. I pushed the fix now, and threw in a correction for another bogus comment I introduced while developing the bugfix. Thanks! -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Learn about compilers. Then everything looks like either a compiler or a database, and now you have two problems but one of them is fun." https://twitter.com/thingskatedid/status/1456027786158776329