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 1p5Wdt-0007NL-82 for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Dec 2022 18:38:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p5Wdq-0004Vt-7W for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Dec 2022 18:38:06 +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 1p5Wdp-0004Vk-RH for pgsql-hackers@lists.postgresql.org; Wed, 14 Dec 2022 18:38:05 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p5Wdn-0007nk-5i for pgsql-hackers@postgresql.org; Wed, 14 Dec 2022 18:38:04 +0000 Received: by mail-pj1-x102b.google.com with SMTP id hd14-20020a17090b458e00b0021909875bccso4307214pjb.1 for ; Wed, 14 Dec 2022 10:38:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=g1dIf3DMnXDlmS4+WcIUOcHLXts0aw3Ge3bmEZBIUsM=; b=eFOnC+zWrzdeIkS8qma7iG/6phUICv7OzDfqNTtR0KHNZ8zj2kyxwRo0wAK1a6Q9rc m9Ip6ebirOyJbQ0LgNQose887H74rxg7slKSd7WHV/1HILneNcBwzEFP8T9EbpfR1ZjH aqfsyO4jKOlJ/XgDhoU7EhkSFttgw3YrT/KLx0ArGF98KfZg04BiExfQ9SXfLl95/HyE psUHBgLa/GVk0g9jpd2WjxbrApS8mO+PdpnhGqAUDvx0UGmEB/i8vnCJt9H5Orq8nzRd Ofc5VCt6nmyCBRcVS/EYhgwoOjt9hLi2Sft50aIzsPGz4zdoNysNQ6iJF1CgyQsnKNnJ tVDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=g1dIf3DMnXDlmS4+WcIUOcHLXts0aw3Ge3bmEZBIUsM=; b=IRQcBSsbQdJEVJIC5CohQgNzldJFPfUPgAR4b9YhPky2KWUiIOa2c0gOGeqb2G7Czz IPslhUg3UBl8gkuFi04lsjzRI/Z9GONUHNVwcnY/d566Pgb7RBo9MjBb78TtlXCrItkF uDVR1+sPwgllrxG0Imo70IwLgGF+MI/P59tgF7CURs5bmMYF5Q5uJdRAjGaWgMR/eUby lLyt4+aa317VyaXAxn+cFOfe+KbSz5M2goguu1of/mDbHM9rpd1/caPV+WkCH9ELRGnL ZHNNvHFUAsgwn/5KeoKi7/EgPTnailQ2xndA4291I2OT9a8i5HBMjb2BhAATZD5qEEOJ L/yg== X-Gm-Message-State: ANoB5pkQBca65BbtAUEtMjv3lmq1u+qiD75BNdlfHIXvNXr9BlnhK9mm unjHk9dAufHG8475K08D4C8= X-Google-Smtp-Source: AA0mqf4rNXNuZ55fMvxSjgmfzcC7+iaH3RCFLdXDFIbAHisEMpVo6SNMIUCvPu0vgQ2ntM9hr5qoUg== X-Received: by 2002:a17:90a:2dc2:b0:219:c6b6:725d with SMTP id q2-20020a17090a2dc200b00219c6b6725dmr25399387pjm.24.1671043082052; Wed, 14 Dec 2022 10:38:02 -0800 (PST) Received: from nathanxps13 ([50.47.162.83]) by smtp.gmail.com with ESMTPSA id t15-20020a17090a0d0f00b0021358bd24b9sm1709028pja.21.2022.12.14.10.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 10:38:01 -0800 (PST) Date: Wed, 14 Dec 2022 10:37:59 -0800 From: Nathan Bossart To: Tom Lane Cc: Melih Mutlu , Thomas Munro , "Hayato Kuroda (Fujitsu)" , "pgsql-hackers@postgresql.org" Subject: Re: wake up logical workers after ALTER SUBSCRIPTION Message-ID: <20221214183759.GC773264@nathanxps13> References: <20221207181145.GA3698731@nathanxps13> <2550453.1670974328@sss.pgh.pa.us> <20221214000145.GA638663@nathanxps13> <2561155.1670977214@sss.pgh.pa.us> <20221214004105.GA669835@nathanxps13> <20221214171023.GA689106@nathanxps13> <2707695.1671039752@sss.pgh.pa.us> <20221214174535.GA773264@nathanxps13> <2783450.1671042198@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2783450.1671042198@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Dec 14, 2022 at 01:23:18PM -0500, Tom Lane wrote: > Nathan Bossart writes: >> I'm reasonably certain the launcher is already signaled like you describe. >> It'll just wait to start new workers if it's been less than >> wal_retrieve_retry_interval milliseconds since the last time it started >> workers. > > Oh. What in the world is the rationale for that? My assumption is that this is meant to avoid starting workers as fast as possible if they repeatedly crash. I didn't see much discussion in the original logical replication thread [0], but I do see follow-up discussion about creating a separate GUC for this [1] [2]. [0] https://postgr.es/m/b8132323-b577-428c-b2aa-bf41a66b18e7%402ndquadrant.com [1] https://postgr.es/m/CAD21AoAjTTGm%2BOx70b2OGWvb77vPcRdYeRv3gkAWx76nXDo%2BEA%40mail.gmail.com [2] https://postgr.es/m/CAD21AoDCnyRJDUY%3DESVVe68AukvOP2dFomTeBFpAd1TiFbjsGg%40mail.gmail.com -- Nathan Bossart Amazon Web Services: https://aws.amazon.com