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 1p0Ehp-0002r0-Cy for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Nov 2022 04:28:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p0Eho-0001yt-9n for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Nov 2022 04:28:20 +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 1p0Eho-0001yj-0e for pgsql-hackers@lists.postgresql.org; Wed, 30 Nov 2022 04:28:20 +0000 Received: from mail-vs1-xe35.google.com ([2607:f8b0:4864:20::e35]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p0Ehl-0002uz-Pc for pgsql-hackers@postgresql.org; Wed, 30 Nov 2022 04:28:18 +0000 Received: by mail-vs1-xe35.google.com with SMTP id p15so8001895vsr.5 for ; Tue, 29 Nov 2022 20:28:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=H1pXcqCwt3oAQ+jQwhaTN56J/bRbODaBDV48oaDAzyU=; b=hAfma3VjT4lsJ1aLjt0q5K4JT+qQQJnzOox4dSas+toItIzIteSv5N2PwLYH0NdK7f LlkNjwQWe0CcYCqlzsESxIFU0L05yW7Jz9wrZFeEf4uwy+yKYPbaoGv9DUs+6x0bh2RS Kz1H1lTJZCjExoFHwUnjrh8Tyz3pbtunM9uDtsF7kDYV0E7igzwUJUQmhGjvPw818nnb mhrg3Jnoes2BFe9yicnHbMGY2m7xDqHkuwXbalNLj388OiH7psa7A1zHWaWOM7nS3YWN VMPMG5PIesZG79EKfNGDPUiSFFY+3BohIirBmNurxgIW17TES77LTS1dST+iJHa3/2Vz aAWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=H1pXcqCwt3oAQ+jQwhaTN56J/bRbODaBDV48oaDAzyU=; b=Y2nmMoKmzB8umdCtcupchv+asn5dR8amJuGg/S5F+jJ8ouCn2W9YR/b44UcNDCqC5c yAmFDtUpOlNZjAj3F+zBov9c7oh6WxeWuS861Dxk4csMia5v6iDzp5jNvC7slMW7iidN BdJfexbtIUvjVS4ityZU/hsjSZraBYcoB09oRSFOjt2AgVAiRZXFwzl+/aB3Zx5cFsAq Li3NbJ+5nm9eLkcHHgsHudAs75m+E3BpSrIkxWoB7w1vqhpkh+kGz2i9QoktJSiJrbl3 kCDV8P8LgSq4e/aXEiYA+/ozwKN4Rm44mIUt4aXUv9Gta8t4WWTKrJ76nl7laH8l6V+n +DEw== X-Gm-Message-State: ANoB5pmpgzaE7PDUD37P8TxhJOHKyemG/e2mV8fS5em5sC0cRv6UbzA/ OhA/E6kDXHj00o3B2lfqQyYy4OvPywMqM0JByDU= X-Google-Smtp-Source: AA0mqf7IJMTecXoIJUbFqQHaFUDn0ucYj9V5DVurmkMtay5KZ3PLHLHCTrPR+G0vFtc4lof69Bittji71KeJ39AYLDk= X-Received: by 2002:a67:f810:0:b0:3b0:82d0:c0e0 with SMTP id l16-20020a67f810000000b003b082d0c0e0mr14572552vso.86.1669782497045; Tue, 29 Nov 2022 20:28:17 -0800 (PST) MIME-Version: 1.0 References: <20221122004119.GA132961@nathanxps13> <20221122043916.GA230228@nathanxps13> <20221123205027.GA368966@nathanxps13> <20221127234528.GB878043@nathanxps13> <20221130041028.GA1604177@nathanxps13> In-Reply-To: From: Thomas Munro Date: Wed, 30 Nov 2022 17:27:40 +1300 Message-ID: Subject: Re: wake up logical workers after ALTER SUBSCRIPTION To: Nathan Bossart Cc: "Hayato Kuroda (Fujitsu)" , "pgsql-hackers@postgresql.org" Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Nov 30, 2022 at 5:23 PM Thomas Munro wrote: > On Wed, Nov 30, 2022 at 5:10 PM Nathan Bossart wrote: > > I spent some more time on the prevent-unnecessary-wakeups patch for > > logical/worker.c that I've been alluding to in this thread, and I found a > > few more places where we depend on the worker periodically waking up. This > > seems to be a common technique, so I'm beginning to wonder whether these > > changes are worthwhile. I think there's a good chance it would become a > > game of whac-a-mole. > > Aren't they all bugs, though, making our tests and maybe even real > systems slower than they need to be? (Which isn't to suggest that it's your job to fix them, but please do share what you have if you run out of whack-a-mole steam, since we seem to have several people keen to finish those moles off.)