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 1igxJy-0003Uk-U3 for pgsql-performance@arkaria.postgresql.org; Mon, 16 Dec 2019 20:50:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1igxJx-0001V0-Gi for pgsql-performance@arkaria.postgresql.org; Mon, 16 Dec 2019 20:50:25 +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 1igxJx-0001Ur-7a for pgsql-performance@lists.postgresql.org; Mon, 16 Dec 2019 20:50:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1igxJv-0001zA-1O for pgsql-performance@lists.postgresql.org; Mon, 16 Dec 2019 20:50:24 +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 xBGKoHMi019576; Mon, 16 Dec 2019 15:50:17 -0500 From: Tom Lane To: Peter Geoghegan cc: Shijia Wei , Laurenz Albe , pgsql-performance@lists.postgresql.org Subject: Re: Consecutive Query Executions with Increasing Execution Time In-reply-to: References: Comments: In-reply-to Peter Geoghegan message dated "Mon, 16 Dec 2019 12:39:10 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19574.1576529417.1@sss.pgh.pa.us> Date: Mon, 16 Dec 2019 15:50:17 -0500 Message-ID: <19575.1576529417@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Geoghegan writes: > Why do the first and the twentieth executions of the query have almost > identical "buffers shared/read" numbers? That seems odd. It's repeat execution of the same query, so that doesn't seem odd to me. This last set of numbers suggests that there's some issue with the parallel execution infrastructure in particular, though I don't see what it would be. Doesn't execParallel wait for the workers to exit before the leader finishes its query? If so, how is there any persistent state that would interfere with a later query? regards, tom lane