Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehiOM-0006dk-Hv for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Feb 2018 20:57:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehiOL-0002kq-8T for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Feb 2018 20:57:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ehiOK-0002kg-UU for pgsql-hackers@lists.postgresql.org; Fri, 02 Feb 2018 20:57:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehiOI-0007Tu-Jg for pgsql-hackers@postgresql.org; Fri, 02 Feb 2018 20:56:59 +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 w12KuuwA005930; Fri, 2 Feb 2018 15:56:56 -0500 From: Tom Lane To: Robert Haas cc: Dilip Kumar , Thomas Munro , Jakub Glapa , pgsql-hackers Subject: Re: ERROR: too many dynamic shared memory segments In-reply-to: References: <3647.1517601675@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Fri, 02 Feb 2018 15:19:49 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5928.1517605016.1@sss.pgh.pa.us> Date: Fri, 02 Feb 2018 15:56:56 -0500 Message-ID: <5929.1517605016@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > On Fri, Feb 2, 2018 at 3:01 PM, Tom Lane wrote: >> Do you mind if I change that Assert to a run-time test? > Hrm, I guess I could have done something like > shm_toc_lookup(pcxt->toc, PARALLEL_KEY_ERROR_QUEUE, (pcxt->nworkers == > 0)). OK, that'd work too. I'll make it so. regards, tom lane