Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wEJKL-003sJf-07 for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Apr 2026 04:00:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEJKK-00EFTr-0d for pgsql-hackers@arkaria.postgresql.org; Sun, 19 Apr 2026 04:00:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wEJKJ-00EFTj-2d for pgsql-hackers@lists.postgresql.org; Sun, 19 Apr 2026 04:00:07 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wEJKH-00000001vF2-1eZP for pgsql-hackers@postgresql.org; Sun, 19 Apr 2026 04:00:07 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-59e5aa4ca41so1941247e87.2 for ; Sat, 18 Apr 2026 21:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776571203; x=1777176003; darn=postgresql.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=roGqa0AhvEXT21TToHyqcOgX2M4FaMMdVqsONmYHkAM=; b=RfWcr30NCl7KWePYThDKw3nBzyOzOC72Y0piepWX+YYERLzJ0kU7EPomfzF5vZ3JO6 Xd8n7RNpklhj6MF4Re0fDeI17kHkzF6o9rZFwxQowcoqdhShyiDzNAGqZVFZqDYj5hNo mb1zng/+EkxXcSIH7lmvtqax6HYu0/dKiEZSIUuUEjnnPzDXFTsyl7+X4Z8BpIssY5Ht 23S+TYScGUKn8Xaa6QlIbkAlp0faW1SE/rorbK7W1opl62hPoFCY1ezGJFMWi/BUu4Iy WXcsbBXJMQNKoBT+ga7/D88pqd+gnNbZRlnaH674mDiV+ZIfpCTc63A7CqeUl13L5bRA auww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776571203; x=1777176003; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=roGqa0AhvEXT21TToHyqcOgX2M4FaMMdVqsONmYHkAM=; b=OoEcTR1aIsj1ZC6B5aj+9TC0kqf1fO08r8YajCpcF8e6qpd2keZCEKdp1ef1c/KStK Bx+a9beNIksPxaqmTe68TYgThVHjmhcLlDaISqELlhliamZY7B1ielu/PDLR+4RfJ/Wv XKRh14fALdNBJK2/Ymt8mguVNL9SXnIJvFipAPgjWr+pDgrTFNvfipjy18fQpyMjsQEy Aw5lJSYNLqEImbsSq6IBnVUk8QeoEUcoGhlRf3QwCy6twgbS9LSlsGHxWdkvd9ccTM0C X6cdnRDW/LGGmccNHGAEdWS8/x5mDhOyS2Fvdb8rH2UnWVKNhWj7UF0fNJoTKshYHRXp SqBw== X-Gm-Message-State: AOJu0YwyMbQ1QfDrsRldkWS6/nfHmvu1jtSo16uE1E0BSJ45lwmCrHyW Gk4QqFp4bZaZh+z3Y3dNdFLmQvKj1XKF+NGD7z7U7N4UeMhsVfMf6S6X8RZRh4iv X-Gm-Gg: AeBDiev7fvznuoS9qRhKJxq/xB/+WpkKCydhgbuWGbQhWeVbyvz/i3q+NLB+FMMZERC PiK1806n9fDHZcfYX8oGFUjCaadntw/Wxr6zUpii96Qnt2JZVpLs7BI6bz6VnQXtxvz8aiDpC8k oXDCazpqfMNU2KjFIDZQgvGnUClU3CvrR5/vBBlWE+UOPicPO6vfzzNFPjtyHmvZOrFqcmxdC88 YopIjZHnKTjezesj8bXp/xcojauGJ9vjv+DxKbWtb2U2rTrnftc0LgsXiBn5uL9Wrjwp53fkj2i TOU+cArS2KdMA4/Ol1DQoAENR2vuYNGaM6RpSCpRLYECeYYW+7MjGBBUVFwqtCWp/Xbtrhh85Qi XLp9ddGBchyaX7UFD2d6CITLaUkeukK//cB4wSjqkE8sWyxrsIoIAouZa5SNJl5GdE+l9V65fek VvvSjdUky4jMoUz1JXIToUZ1/twjAgQi+Up2g= X-Received: by 2002:a05:6512:138c:b0:5a4:1587:c09b with SMTP id 2adb3069b0e04-5a4172bb962mr3049987e87.2.1776571202306; Sat, 18 Apr 2026 21:00:02 -0700 (PDT) Received: from [192.168.0.50] ([89.149.68.143]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5a4185ad12asm1914931e87.1.2026.04.18.21.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Apr 2026 21:00:01 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------CgADW9RotB1r3uN8qRNKeLlq" Message-ID: <037ce9cd-28ad-4c19-9be1-d8c1f577a322@gmail.com> Date: Sun, 19 Apr 2026 07:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Optimize LISTEN/NOTIFY To: Tom Lane , Joel Jacobson Cc: pgsql-hackers References: <6899c044-4a82-49be-8117-e6f669765f7e@app.fastmail.com> <2531672.1759868124@sss.pgh.pa.us> <474efa78-337c-41cd-a73a-f845a0115109@app.fastmail.com> <2749343.1759949176@sss.pgh.pa.us> <8bfca2be-1ec0-4e15-aafb-0b7b661fe936@app.fastmail.com> <9eba307f-f2fb-48f0-9507-2e197f39ef9e@app.fastmail.com> <8c71183a-0d28-4bcf-a806-78446ff95404@app.fastmail.com> <1009807.1760476747@sss.pgh.pa.us> <1F7227F5-C33D-4E2C-8511-33F1468590D0@gmail.com> <0a5a20d3-4621-46b3-b2ab-903f63a20dea@app.fastmail.com> <6F913129-ABEF-4004-AAF3! -F! !22!F!C!3!4!29AE8@gmail.com> <1547585.1760645808@sss.pgh.pa.us> <14865EB6-0BF4-462B-9 <803584.1768503335@sss.pgh.pa.us> Content-Language: en-US From: Alexander Lakhin In-Reply-To: <803584.1768503335@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------CgADW9RotB1r3uN8qRNKeLlq Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hello Tom and Joel, 15.01.2026 20:55, Tom Lane wrote: > Anyway, at this point I'm content to go ahead with v35, and > I'll push that in a little bit. Perhaps we should take a TODO > to figure out why this test scenario runs so poorly on macOS; > but I'll bet that the answer is not anywhere near async.c itself. While browsing through new inconsistencies and typos, I came across one which I'm not sure what to do with. Could you help, please? async-notify.spec contains: # Check ChannelHashAddListener array growth. permutation listenc llisten l2listen l3listen lslisten But as far as I can see, ChannelHashAddListener() was eliminated in 0002-optimize_listen_notify-v13.patch upthread [1]: > > Or thinking a little bigger: why are we maintaining the set of > > channels-listened-to both as a list and a hash? Could we remove > > the list form? > > Yes, it was indeed possible to remove the list form. > So, maybe the comment or perhaps even the test case should be changed/ removed? [1] https://www.postgresql.org/message-id/8bfca2be-1ec0-4e15-aafb-0b7b661fe936%40app.fastmail.com Best regards, Alexander --------------CgADW9RotB1r3uN8qRNKeLlq Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Hello Tom and Joel,

15.01.2026 20:55, Tom Lane wrote:
Anyway, at this point I'm content to go ahead with v35, and
I'll push that in a little bit.  Perhaps we should take a TODO
to figure out why this test scenario runs so poorly on macOS;
but I'll bet that the answer is not anywhere near async.c itself.

While browsing through new inconsistencies and typos, I came across one
which I'm not sure what to do with. Could you help, please?

async-notify.spec contains:
# Check ChannelHashAddListener array growth.
permutation listenc llisten l2listen l3listen lslisten

But as far as I can see, ChannelHashAddListener() was eliminated in
0002-optimize_listen_notify-v13.patch upthread [1]:

> Or thinking a little bigger: why are we maintaining the set of
> channels-listened-to both as a list and a hash? Could we remove
> the list form?

Yes, it was indeed possible to remove the list form.


So, maybe the comment or perhaps even the test case should be changed/
removed?

[1] https://www.postgresql.org/message-id/8bfca2be-1ec0-4e15-aafb-0b7b661fe936%40app.fastmail.com

Best regards,
Alexander
--------------CgADW9RotB1r3uN8qRNKeLlq--