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 1hT5vD-0000DZ-Sf for pgsql-hackers@arkaria.postgresql.org; Tue, 21 May 2019 14:39:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hT5vC-0007Kb-44 for pgsql-hackers@arkaria.postgresql.org; Tue, 21 May 2019 14:39:18 +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 1hT5vB-0007KU-OX for pgsql-hackers@lists.postgresql.org; Tue, 21 May 2019 14:39:17 +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 1hT5v8-0001Z1-S6 for pgsql-hackers@postgresql.org; Tue, 21 May 2019 14:39:16 +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 x4LEdCtE003342; Tue, 21 May 2019 10:39:12 -0400 From: Tom Lane To: David Rowley cc: Thomas Munro , 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 David Rowley message dated "Tue, 21 May 2019 12:43:03 +1200" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" Content-ID: <3265.1558449419.0@sss.pgh.pa.us> Date: Tue, 21 May 2019 10:39:12 -0400 Message-ID: <3341.1558449552@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3265.1558449419.1@sss.pgh.pa.us> David Rowley writes: > I did add the following query just before the failing one and included > the expected output from below. The tests pass for me in make check > and the post-upgrade test passes in make check-world too. I guess we > could commit that and see if it fails along with the other mentioned > failure. I'm thinking this is a good idea, although I think we could be more aggressive about the data collected, as attached. Since all of these ought to be single-page tables, the relpages and reltuples counts should be machine-independent. In theory anyway. regards, tom lane ------- =_aaaaaaaaaa0 Content-Type: text/x-diff; name="investigate-a_star-failures.patch"; charset="us-ascii" Content-ID: <3265.1558449419.2@sss.pgh.pa.us> Content-Description: investigate-a_star-failures.patch Content-Transfer-Encoding: quoted-printable diff --git a/src/test/regress/expected/select_parallel.out b/src/test/regr= ess/expected/select_parallel.out index 0eca76c..9775cc8 100644 --- a/src/test/regress/expected/select_parallel.out +++ b/src/test/regress/expected/select_parallel.out @@ -89,6 +89,33 @@ select round(avg(aa)), sum(aa) from a_star a3; 14 | 355 (1 row) = +-- Temporary hack to investigate whether extra vacuum/analyze is happenin= g +select relname, relpages, reltuples +from pg_class +where relname like '__star' order by relname; + relname | relpages | reltuples = +---------+----------+----------- + a_star | 1 | 3 + b_star | 1 | 4 + c_star | 1 | 4 + d_star | 1 | 16 + e_star | 1 | 7 + f_star | 1 | 16 +(6 rows) + +select relname, vacuum_count, analyze_count, autovacuum_count, autoanalyz= e_count +from pg_stat_all_tables +where relname like '__star' order by relname; + relname | vacuum_count | analyze_count | autovacuum_count | autoanalyze_= count = +---------+--------------+---------------+------------------+-------------= ------ + a_star | 1 | 0 | 0 | = 0 + b_star | 1 | 0 | 0 | = 0 + c_star | 1 | 0 | 0 | = 0 + d_star | 1 | 0 | 0 | = 0 + e_star | 1 | 0 | 0 | = 0 + f_star | 1 | 0 | 0 | = 0 +(6 rows) + -- Disable Parallel Append alter table a_star reset (parallel_workers); alter table b_star reset (parallel_workers); diff --git a/src/test/regress/sql/select_parallel.sql b/src/test/regress/s= ql/select_parallel.sql index 03c056b..f96812b 100644 --- a/src/test/regress/sql/select_parallel.sql +++ b/src/test/regress/sql/select_parallel.sql @@ -36,6 +36,14 @@ explain (costs off) select round(avg(aa)), sum(aa) from a_star; select round(avg(aa)), sum(aa) from a_star a3; = +-- Temporary hack to investigate whether extra vacuum/analyze is happenin= g +select relname, relpages, reltuples +from pg_class +where relname like '__star' order by relname; +select relname, vacuum_count, analyze_count, autovacuum_count, autoanalyz= e_count +from pg_stat_all_tables +where relname like '__star' order by relname; + -- Disable Parallel Append alter table a_star reset (parallel_workers); alter table b_star reset (parallel_workers); ------- =_aaaaaaaaaa0--