Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQ9bm-0004ob-5p for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Sep 2021 14:40:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mQ9bE-0000vi-MY for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Sep 2021 14:39:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQ9bD-0000vZ-Ue for pgsql-bugs@lists.postgresql.org; Tue, 14 Sep 2021 14:39:52 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQ9b8-0004SH-2j for pgsql-bugs@lists.postgresql.org; Tue, 14 Sep 2021 14:39:50 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 169575C031C; Tue, 14 Sep 2021 10:39:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 14 Sep 2021 10:39:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=J3i+pr xdVAjprEvK5dO63crOdpUAIBcMxnNEc+ED20Y=; b=v5fagP/w5lnzsdlnRz4Hll RHBWkQIwpNCSBzDYF82a2ZQtfRWVmVboha9EQEIDeJ07CSOXbhFquAfR/3gToEKR 3dHwA6b8p+HajH6GJZK7uadqzu+waFgjdNxn8Ae6HA+o10cAtf0bRnEieBYBzH9N F3ciRWesbjuHt1eELRA1mjLZb9HADmPrqsk9z0vLyUB3cMg9LR3PfqPD1Vt/n6Bx uio+Rht7lt5fOjQyBRoPRee3CFhSlLuLhBSsyMXmx6dShbT19SAoWB0+XNbBSohm 96C7JLlAstFgpDhAuGRA0uJSADA2nBtWRZr/ZMAjyo+z7j92jHgklzYeJ6yZ5UbQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudegledgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgesmhdtre ertdefheenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdr vghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomheqnecuggftrfgrth htvghrnhephfduleevieetveevtdduteehheeuieeujeevjeegheevjedvhfehieevhfej ieelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepph gvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 14 Sep 2021 10:39:41 -0400 (EDT) Subject: Re: BUG #17158: Distinct ROW fails with Postgres 14 To: Tom Lane Cc: David Rowley , sait.nisanci@microsoft.com, PostgreSQL mailing lists References: <17158-8a2ba823982537a4@postgresql.org> <496046.1629843371@sss.pgh.pa.us> <2021952.1630442634@sss.pgh.pa.us> <7fb17b3d-13dc-fc28-17ce-9c302d676bd8@enterprisedb.com> <4519d7da-7402-cff3-d577-0bc8511e0c9a@enterprisedb.com> <4092959.1631302070@sss.pgh.pa.us> From: Peter Eisentraut Message-ID: <2f0f926d-23c9-2ded-4032-dee85be733dc@enterprisedb.com> Date: Tue, 14 Sep 2021 16:39:39 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <4092959.1631302070@sss.pgh.pa.us> Content-Type: multipart/mixed; boundary="------------18AD61ACA43934C2F990960D" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------18AD61ACA43934C2F990960D Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 10.09.21 21:27, Tom Lane wrote: > Perhaps it'd work to put the phony entry into fcinfo->flinfo->fn_mcxt > instead of CacheMemoryContext. > > BTW, skink's failure can be reproduced pretty quickly by running the > attached under valgrind. Ok, the attached patch fixes the valgrind error. --------------18AD61ACA43934C2F990960D Content-Type: text/plain; charset=UTF-8; x-mac-type="0"; x-mac-creator="0"; name="0001-Fix-hash_array.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Fix-hash_array.patch"