Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kk76b-00087t-Ce for pgsql-general@arkaria.postgresql.org; Tue, 01 Dec 2020 14:58:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kk76a-0005YJ-Bz for pgsql-general@arkaria.postgresql.org; Tue, 01 Dec 2020 14:58:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kk76a-0005YB-3i for pgsql-general@lists.postgresql.org; Tue, 01 Dec 2020 14:58:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kk76X-0007Nb-S4 for pgsql-general@lists.postgresql.org; Tue, 01 Dec 2020 14:58:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 0B1Ew7E21393712; Tue, 1 Dec 2020 09:58:08 -0500 From: Tom Lane To: mobigroup cc: pgsql-general@lists.postgresql.org Subject: Re: PostgreSQL 12.4 Parallel Query doesn't work while EXPLAIN is OK In-reply-to: <3879EBE6-399D-4CAF-9C37-D5CA656DB77C@mobigroup.ru> References: <7091E3D2-C056-421B-A95C-F2F83EABF9E7@mobigroup.ru> <3f8a8eb1422a557b2306391d434019a15d3770af.camel@cybertec.at> <3879EBE6-399D-4CAF-9C37-D5CA656DB77C@mobigroup.ru> Comments: In-reply-to mobigroup message dated "Tue, 01 Dec 2020 17:34:28 +0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1393710.1606834687.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2020 09:58:07 -0500 Message-ID: <1393711.1606834687@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk mobigroup writes: >> Perhaps you didn't define it as PARALLEL SAFE. > The function is marked as "PARALLEL RESTRICTED=E2=80=9D because it=E2=80= =99s uses temp tables (and I tested it as PARALLEL SAFE with the same resu= lt=E2=80=A6 parallelisation doesn=E2=80=99t work anyway). If it writes into temp tables then it can't be run in a worker anyway. regards, tom lane