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 1hSsJW-00067H-26 for pgsql-hackers@arkaria.postgresql.org; Tue, 21 May 2019 00:07:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hSsJU-0007Im-RR for pgsql-hackers@arkaria.postgresql.org; Tue, 21 May 2019 00:07:28 +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 1hSsJU-0007IA-G7 for pgsql-hackers@lists.postgresql.org; Tue, 21 May 2019 00:07:28 +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.89) (envelope-from ) id 1hSsJR-0008EA-Un for pgsql-hackers@postgresql.org; Tue, 21 May 2019 00:07:27 +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 x4L07MlR021396; Mon, 20 May 2019 20:07:22 -0400 From: Tom Lane To: Thomas Munro cc: pgsql-hackers Subject: Re: Parallel Append subplan order instability on aye-aye In-reply-to: References: <2863.1558327585@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Tue, 21 May 2019 11:31:40 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21394.1558397242.1@sss.pgh.pa.us> Date: Mon, 20 May 2019 20:07:22 -0400 Message-ID: <21395.1558397242@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > On Mon, May 20, 2019 at 4:46 PM Tom Lane wrote: >> Note that in the discussion that led up to 624e440a, we never did >> think that we'd completely explained the original irreproducible >> failure. > I think it might be dependent on incidental vacuum/analyze activity > having updated reltuples. The problem is to explain where said activity came from. a_star and its children are too small to attract autovacuum's attention. They get created/filled in create_table.sql/create_misc.sql, and then they get explicitly vacuum'd by sanity_check.sql, and then after that things are 100% stable. Or should be. There are some incidental ALTER TABLEs on them in misc.sql and select_parallel.sql, but those shouldn't have any interesting effects on the rowcount estimates ... and even if they do, why would such effects not be reproducible? So I'm not excited about sticking in an extra vacuum or analyze without actually understanding why the irreproducible behavior happens. It's not exactly implausible that that'd make it worse not better. regards, tom lane