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 1leXlj-0001wC-6E for pgsql-hackers@arkaria.postgresql.org; Thu, 06 May 2021 06:45:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1leXli-0007ZM-3h for pgsql-hackers@arkaria.postgresql.org; Thu, 06 May 2021 06:45:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1leXlh-0007ZE-Kj for pgsql-hackers@lists.postgresql.org; Thu, 06 May 2021 06:45:53 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1leXlf-0006Yz-B5 for pgsql-hackers@lists.postgresql.org; Thu, 06 May 2021 06:45:53 +0000 Received: by mail-pf1-x42d.google.com with SMTP id x188so4399986pfd.7 for ; Wed, 05 May 2021 23:45:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=w44wbtpuXk+mFkWYob9pH2dYiZMj75wFr1gldWt/HQA=; b=GAZQMrA8c5OO0SoKhlProAk5TISKQBGZAA49PnW/fUNsCrCGIbsuXdSXI78jBxXl5j EWIRplHMWw1gY8Gr7LJtXezt7HZ6/FN0hMjMIvnnj+WBqbCVIgzMlEPdGj2xDHQowEMg VNfA3S5nKGJaug9O+9xWVODeEhq+sdpFhD0sA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=w44wbtpuXk+mFkWYob9pH2dYiZMj75wFr1gldWt/HQA=; b=ljxyJR3MZRSOSHtyWIAf4Udl870joi8r86olZZE5ZzejxFFMU2OnQVLgKi7FGXkQ5R G5uVmeUNLCf4YhWWq/Uexbtdyznafbziz8s0ej0fHzYtyaAp1J7PFGzHN8Eyt8jsvhI2 mQLmbgOrcQFWcv8gD2luTAOBAdjdkHo6GElCiZkMbi4+nBCQL1JxbwMh7uaXDMpuIOYY vlh5EZUkyTvSB5IZobtWsl6JGg+3ZkctUBv9CgVn5gSbHJCbO2t9YnIgzqSv7MdVtWKa yuSpoBjrY9SY7ny+7zY2HvGV/pGTByjR9QF3qLJSY+Px2eEIBllhuiVJakbcUs9liVzt Iohw== X-Gm-Message-State: AOAM530pTsMk6AGSTz9Os3zqbNuI6hyk2QTJ4vwqiZ/o9tfFmks+mU2r JC7GA4+cgz8eT7GXuMiR7eB6eA== X-Google-Smtp-Source: ABdhPJybG2Nh37jd9e4B/6vKmnakB4sTBxl1NPKI/dgzkQStnF4mQm8yamLer/aK4u68BrjqwsLPxg== X-Received: by 2002:a62:75c3:0:b029:27c:d30f:66a6 with SMTP id q186-20020a6275c30000b029027cd30f66a6mr3113284pfc.0.1620283548916; Wed, 05 May 2021 23:45:48 -0700 (PDT) Received: from rfd.leadboat.com ([2600:1702:a20:5750::46]) by smtp.gmail.com with ESMTPSA id j10sm1164982pfn.207.2021.05.05.23.45.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 May 2021 23:45:48 -0700 (PDT) Date: Wed, 5 May 2021 23:45:46 -0700 From: Noah Misch To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org, Robert Haas Subject: Re: Dubious assertion in RegisterDynamicBackgroundWorker Message-ID: <20210506064546.GA2961541@rfd.leadboat.com> References: <4046084.1620244003@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4046084.1620244003@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, May 05, 2021 at 03:46:43PM -0400, Tom Lane wrote: > I know that the parallel-worker code is held > together with chewing gum and baling wire Having spent time in that code, I didn't notice such weakness. I'm sure it has bugs, but I doubt its bug density is unusual for PostgreSQL.