Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i27gk-0007MO-Ci for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Aug 2019 05:37:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i27gi-0008He-VW for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Aug 2019 05:37:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i27gh-0008G1-8B for pgsql-bugs@lists.postgresql.org; Mon, 26 Aug 2019 05:37:08 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i27gY-0002tR-QQ for pgsql-bugs@lists.postgresql.org; Mon, 26 Aug 2019 05:37:06 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 9FAE0358; Mon, 26 Aug 2019 01:36:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 26 Aug 2019 01:36:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=LyJd6Eb+Ps9GeaSE8yY+VXK6lno 13dPTIbOTtXw+kQ4=; b=mTeIyEWpORBysvExnZqaaT5uYMBZSgKQJN5GvbiqdMq m6RJpMKulTtz7CNZ8xlGs+8UkW2eBkqDwwDIi3PVLGbHNn1SBwZZqPDc3j9Jd/6R 3bFmguggFhFpwN5EkhDTyZ0CuwdhUujlclFJFOPyYGsA9t9GQt0lz3obTKrIR21W 3Nb2E/D5Kip/IZYDiRwrycDifRhf6fRctx7vXbKEUMunNcTOOwkGDCeoskirpOk4 cUeRsJnpgXUQGNO8rcU898dGr/5VIZVsvGRqGsFllFPxMoVlyyVKUh0CRjl9tRU+ 26dXVZTRdCxqupr4nIn1RmUcrfrCGoIbXozWKnP7OIA== 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=LyJd6E b+Ps9GeaSE8yY+VXK6lno13dPTIbOTtXw+kQ4=; b=nosLxcQDCpzY7WwjHtAAon J1QaBGD4QzToCcTOG73ibPWvJYHe7rwwALR7pxWRv7xp0Ic5mTfE8+43w2n7HfTp cAaOEq8MYsgjMIdxiMuRx6sYOFlHDakalnhE6eGJp5VnNzj8tO0R66AUPIlfHMx2 1jsxwyw/eCLUMe8BjrBodH24YOeqSFiVxOUzlih7d3StndaFO1hNU7Z8/KjXhVcy EYrR9nksAP9eB770D8VvzPzs8zCbOhI8WXif1397mqcu3gCHPwjuPpsiwc4sSJY8 OSa5boYRsh/nLqpT3VsqrQCfsqrHs0+N6dXAxXrC91EPWlAVHPQXXbHO+pfLrIaQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudehfedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomheptehnughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghn rghrrgiivghlrdguvgeqnecukfhppeeijedrudeitddrvddukedrvdefjeenucfrrghrrg hmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgriigvlhdruggvnecuvehluhhs thgvrhfuihiivgeptd X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-218-237.hsd1.ca.comcast.net [67.160.218.237]) by mail.messagingengine.com (Postfix) with ESMTPA id A3146D6005A; Mon, 26 Aug 2019 01:36:53 -0400 (EDT) Date: Sun, 25 Aug 2019 22:36:52 -0700 From: Andres Freund To: Tom Lane Cc: yi huang , pgsql-bugs@lists.postgresql.org Subject: Re: PostgreSQL12 crash bug report Message-ID: <20190826053652.a5a6bdsgtus7xcez@alap3.anarazel.de> References: <20811.1564344681@sss.pgh.pa.us> <28807.1564614449@sss.pgh.pa.us> <20190801004000.3xis75ulpun4ha3p@alap3.anarazel.de> <5285.1564627060@sss.pgh.pa.us> <20190801043658.4hqm7k3iarmq3q7i@alap3.anarazel.de> <29185.1566663202@sss.pgh.pa.us> <20190824225401.gii25wnxwxtx6evg@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190824225401.gii25wnxwxtx6evg@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-08-24 15:54:01 -0700, Andres Freund wrote: > Working on that. Think it's going to look not too invasive. Needs a good bit more cleanup, but I'm getting there. One thing I'm struggling with is understanding and testing nested EPQ states: /* * Each EState must have its own es_epqScanDone state, but if we have * nested EPQ checks they should share es_epqTupleSlot arrays. This * allows sub-rechecks to inherit the values being examined by an outer * recheck. */ At the moment I don't understand what the point here is. When/why do we want to inherit values from the parent epqstate? I know how to construct queries with nested EPQ, but I don't see why we'd ever want to inherit the values from the outer check? Nor how we're doing so - EvalPlanQualFetchRowMarks() unconditionally clears out the old tuple, and nodeLockRows.c unconditionally fetches the source tuples too? Greetings, Andres Freund