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 1hntDa-00062x-1Q for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jul 2019 23:20:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hntDY-0005E3-UI for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jul 2019 23:20:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hntDY-0004xC-Dv for pgsql-hackers@lists.postgresql.org; Wed, 17 Jul 2019 23:20:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hntDW-000223-7D for pgsql-hackers@postgresql.org; Wed, 17 Jul 2019 23:20:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x6HNK4M1028167; Wed, 17 Jul 2019 19:20:04 -0400 From: Tom Lane To: Andres Freund cc: David Rowley , Thomas Munro , pgsql-hackers Subject: Re: Parallel Append subplan order instability on aye-aye In-reply-to: <20190717231232.ssx6fxay756exn6a@alap3.anarazel.de> References: <3341.1558449552@sss.pgh.pa.us> <1588.1558500275@sss.pgh.pa.us> <1554.1563236463@sss.pgh.pa.us> <4174.1563239552@sss.pgh.pa.us> <20190716192344.5jrt5pgzczi545zr@alap3.anarazel.de> <22315.1563378828@sss.pgh.pa.us> <20190717231232.ssx6fxay756exn6a@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 17 Jul 2019 16:12:32 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28165.1563405604.1@sss.pgh.pa.us> Date: Wed, 17 Jul 2019 19:20:04 -0400 Message-ID: <28166.1563405604@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2019-07-17 11:53:48 -0400, Tom Lane wrote: >> A brute-force way to fix this (or at least reduce the odds quite a bit) >> would be to have sanity_check.sql issue a CHECKPOINT before its VACUUM, >> thereby guaranteeing that none of these pages are still in need of being >> written. Not sure how much that'd penalize the regression tests' runtime, >> or whether we'd have a loss of test coverage of VACUUM behaviors. > Alternatively we could VACUUM FREEZE the relevant tables? That then > ought to hit the blocking codepath in lazu_scan_heap()? If we want to target just the X_star tables, I'd be inclined to do an ANALYZE instead. (Although that would create inheritance-tree statistics, which might change some plan choices? Haven't tried.) regards, tom lane