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.92) (envelope-from ) id 1jFrFU-0005oe-E3 for pgsql-general@arkaria.postgresql.org; Sun, 22 Mar 2020 03:26:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jFrFT-0003i9-8R for pgsql-general@arkaria.postgresql.org; Sun, 22 Mar 2020 03:26:03 +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 1jFrFS-0003i2-S5 for pgsql-general@lists.postgresql.org; Sun, 22 Mar 2020 03:26:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jFrFQ-0002N0-BG for pgsql-general@lists.postgresql.org; Sun, 22 Mar 2020 03:26:01 +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 02M3Prpm001855; Sat, 21 Mar 2020 23:25:54 -0400 From: Tom Lane To: Alastair McKinley cc: Jeremy Smith , Adrian Klaver , "pgsql-general@lists.postgresql.org" Subject: Re: Explain says 8 workers planned, only 1 executed In-reply-to: References: , Comments: In-reply-to Alastair McKinley message dated "Sat, 21 Mar 2020 21:16:24 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1853.1584847553.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 21 Mar 2020 23:25:53 -0400 Message-ID: <1854.1584847553@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alastair McKinley writes: > Thanks for solving the mystery. I think this might be a missing point i= n section 15.2 in the docs. > I wonder will this ever be improved or should I just write to temporary = tables instead of return query? I just posted a patch to improve that [1], but it's not something we'd be likely to back-patch into existing releases. regards, tom lane [1] https://www.postgresql.org/message-id/1741.1584847383%40sss.pgh.pa.us