Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQZZu-0006gc-FT for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Jun 2018 14:38:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fQZZt-0004pe-04 for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Jun 2018 14:38:20 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQZZs-0004pV-QB for pgsql-bugs@lists.postgresql.org; Wed, 06 Jun 2018 14:38:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQZZp-0003x5-Qk for pgsql-bugs@lists.postgresql.org; Wed, 06 Jun 2018 14:38:20 +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 w56EcDYE006682; Wed, 6 Jun 2018 10:38:13 -0400 From: Tom Lane To: Frits Jalvingh cc: Thomas Munro , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15225: [XX000] ERROR: invalid DSA memory alloc request size 1073741824 / Where: parallel worker In-reply-to: References: <152802081668.26724.16985037679312485972@wrigleys.postgresql.org> Comments: In-reply-to Frits Jalvingh message dated "Wed, 06 Jun 2018 12:15:25 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6680.1528295893.1@sss.pgh.pa.us> Date: Wed, 06 Jun 2018 10:38:13 -0400 Message-ID: <6681.1528295893@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Frits Jalvingh writes: > As far as that explain thing goes, the odd thing seems to be that /without/ > the explain the database uses a non parallel plan. If I execute the exact > same statement without explain I see one postgres process running at 100% > for a long time, then it produces its output proper. This doesn't prove that the thing is non-parallel, only that the work is badly distributed. You might try cranking up log_min_messages to the point that worker-process launching gets logged, and then see whether or not it's really non-parallel. > - explain seems to somehow influence the plan that is being made. That should absolutely *not* be the case. > - there is a big problem with postgres memory assignment, because with the > increase of parallelism having work_mem work per process means that you > cannot effectively control the amount of memory that postgres uses anymore. work_mem has always been like that. You cannot set it to any very large fraction of your system's available memory, at least not globally across a whole bunch of queries. regards, tom lane