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 1khfFq-00015X-Cs for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Nov 2020 20:49:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1khfFo-0005Wq-9R for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Nov 2020 20:49:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khfFo-0005Wj-2n for pgsql-hackers@lists.postgresql.org; Tue, 24 Nov 2020 20:49:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khfFm-00053G-3A for pgsql-hackers@lists.postgresql.org; Tue, 24 Nov 2020 20:49:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 0AOKnXck309289; Tue, 24 Nov 2020 15:49:33 -0500 From: Tom Lane To: Andrew Gierth cc: pgsql-hackers@lists.postgresql.org, kes-kes@yandex.ru Subject: Re: mark/restore failures on unsorted merge joins In-reply-to: <87blfm4hdv.fsf@news-spur.riddles.org.uk> References: <87o8jn50be.fsf@news-spur.riddles.org.uk> <125707.1606161260@sss.pgh.pa.us> <87k0ua4p4u.fsf@news-spur.riddles.org.uk> <293167.1606242810@sss.pgh.pa.us> <87ft4y4lxm.fsf@news-spur.riddles.org.uk> <296182.1606247286@sss.pgh.pa.us> <87blfm4hdv.fsf@news-spur.riddles.org.uk> Comments: In-reply-to Andrew Gierth message dated "Tue, 24 Nov 2020 20:45:33 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <309287.1606250973.1@sss.pgh.pa.us> Date: Tue, 24 Nov 2020 15:49:33 -0500 Message-ID: <309288.1606250973@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Gierth writes: > "Tom" == Tom Lane writes: > Tom> Looks about right. Not sure if we need to bother with a regression > Tom> test case; once that's in, it'd be hard to break it. > We could check the EXPLAIN output (since the Materialize node would show > up), but it's not easy to get stable plans since the choice of which > path to put on the outside is not fixed. Based on what I found when > actually testing the code, it probably wouldn't be worth the effort. If it's not easy to test, I agree it's not worth it. (Given how long it took anyone to notice this, the difficulty of making a stable test case is unsurprising, perhaps.) regards, tom lane