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 1p0EQh-0002A3-Au for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Nov 2022 04:10:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p0EQf-0008H6-Gs for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Nov 2022 04:10:37 +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 1p0EQf-0008GQ-5f for pgsql-hackers@lists.postgresql.org; Wed, 30 Nov 2022 04:10:37 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p0EQa-00036y-V0 for pgsql-hackers@postgresql.org; Wed, 30 Nov 2022 04:10:36 +0000 Received: by mail-pg1-x531.google.com with SMTP id f3so14977994pgc.2 for ; Tue, 29 Nov 2022 20:10:32 -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=kXsb7dXqd9cZuIcC0QJFicCYsq4jAl429p81Kc3M8rA=; b=pIQCufoCVnI+o8gyX5Vf3QXcui1xVC1BwZSkmMCqYr+fNwg5Vl8pIu7fTo3jFIxEb6 TOa/Y2AQKwtDH9K5NtPF63GiL698ErsTDwSo34xUBD1S+qboYyiN8Ed2SavN7HCZBdhl o2LdBT6cF4Kh9BMAJu76Qk1VkszrujdD/NZ1ou6Z4KMqmPT4SB2PNLQ3qxWDhvlQLE9t AO8V5WZqQLrqdxWMj/OimuOqUmL4bwWgS2+42KwUQh/auFvfFLsA9aqVWzMUEnLxSF0v 560rTXbLmJvE0HMB3eMVDaB3S2wdHFF5Dx9IzPNe0zifEjlRO3FZCdEIY66Nb6r/4m5P +zZQ== 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=kXsb7dXqd9cZuIcC0QJFicCYsq4jAl429p81Kc3M8rA=; b=wPFCPDNWVlHgX0zd0LnN40XBJn4lB7DjH/ps+BaSzBpnguqs5hqzTafztU6nPjNxoO mh5LIjt7tfYLVLF5DgeutBS8kxEGo8DZkvZO7hEZ4/J1v0QjSLLw+hINuwNXNvynwesy fhe3iRK4O6o4d6UzypbAXHeZdUWEwWxZlazvdhC+HXq5BJtBoetdaYC2PDmmB4tIvpCZ 9gQtanDTLURDoZcvqu6XXZkOfQV8OOTgdY1CpnqqywhfZMd1gvnWV5nO0/XIxslk0EQ/ h6Noncy4qnE1QgLcQXe8DLfr7AGND0ER2ty3PLC5Ph7Jut3KveQjrEGrBuawBOdqiYPq nGNQ== X-Gm-Message-State: ANoB5pkkmFp+K5gBhXfHs18qLuaI2KuZoV9Zp7xQzWPAdqj4y8YEy2M8 IUdi3gJexEWn8YGIJPpJyiW6AvtoaGI= X-Google-Smtp-Source: AA0mqf6w/ndYRxDVWTA4c/sywBS8gKauigqPNwv4mXom2me9m3WCJfU8HXRrUBX/uSsyayyuFCRdQA== X-Received: by 2002:a63:200a:0:b0:477:78c7:c45e with SMTP id g10-20020a63200a000000b0047778c7c45emr34250025pgg.169.1669781430461; Tue, 29 Nov 2022 20:10:30 -0800 (PST) Received: from nathanxps13 ([50.47.162.83]) by smtp.gmail.com with ESMTPSA id y77-20020a626450000000b005745a586badsm265297pfb.218.2022.11.29.20.10.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 20:10:29 -0800 (PST) Date: Tue, 29 Nov 2022 20:10:28 -0800 From: Nathan Bossart To: "Hayato Kuroda (Fujitsu)" Cc: "pgsql-hackers@postgresql.org" Subject: Re: wake up logical workers after ALTER SUBSCRIPTION Message-ID: <20221130041028.GA1604177@nathanxps13> References: <20221122004119.GA132961@nathanxps13> <20221122043916.GA230228@nathanxps13> <20221123205027.GA368966@nathanxps13> <20221127234528.GB878043@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221127234528.GB878043@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com