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.94.2) (envelope-from ) id 1v3vSx-005h8b-0I for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Oct 2025 11:57:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v3vSu-001Nmv-P6 for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Oct 2025 11:57:49 +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.94.2) (envelope-from ) id 1v3vSu-001Nmn-De for pgsql-hackers@lists.postgresql.org; Wed, 01 Oct 2025 11:57:49 +0000 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v3vSs-0014ic-1b for pgsql-hackers@postgresql.org; Wed, 01 Oct 2025 11:57:48 +0000 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-77f67ba775aso8716986b3a.3 for ; Wed, 01 Oct 2025 04:57:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759319864; x=1759924664; darn=postgresql.org; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=S/JZtvgipRxKUev8El4O1oH3a2wcHyHpDINmlsbYZYk=; b=hZrvNeYmQjZh5r0u0aKqbrD0zlWrgXCby10Y7J1ek7MqVTRUNjYUnHNZAbX4dW8Mpq vUKkucwmxHp3ip6GXtm58nampoKr0mZRIszHvkep5mzylI2QEwUQC+rJK0lQpduFk4OM cMeYjCjpcw47dnO+nAz5Ee0r7mgpV/eIEVs1BE6tPwEEYQybNRA3jmFY58HUA+zOwMWk 3CLdEZDM7qVKCrkxJAA3nCVWXc4hz30rhCgDJru3Mc/eZZEom9C8+u5yetNyBmvFoGBt hsx/Xwu1hvjJUnEQn5teryAd4PaqIt9ZwS0cgeB8WElaj9XFNnz2W9GD4OFrP8TX0jpc 0QpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759319864; x=1759924664; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=S/JZtvgipRxKUev8El4O1oH3a2wcHyHpDINmlsbYZYk=; b=wdsTA+oy4MR/xR0l+ycI5qa1gdYIbFuP6m3Wl1WU9KXppUs+mN4cAkzdkxbsFMf0Ra h9cjdV8LSA8tmCwT0e2hOy/C9Vq0SQAsGtcnHQeeCKrfWWoKU8fNCC1sDrVWotTnbfhN 7Wc5cW6PGUIveFSgpuLJ98q6u6iakeXpkrM/C+ORj42YBAjX8JYDztI/xW1KCMMskBbR fO5fU4fVKyjr+tSHPME4i5iOWETN1eUh2rFqEsCU8Nu4/lLzt+oB6fRXce/wrua77lUd +LlgCXaQj5UUJkvTJBzR8ehpBIAFoh421S4DSUEBveLvPHqMBS8JcXEg8qF1PKQbSe/l 07cw== X-Forwarded-Encrypted: i=1; AJvYcCVFUWB8WtLuJq/oUQO8z7I8C6lg26GN+LUEOFndUzTAM7ps4pKBC+r/+s6w1kIDJk6+5zwn5hg32AmRg9Dj@postgresql.org X-Gm-Message-State: AOJu0YzI1XP4Cjghhsf/VbWKUHmzfw/aKaWP1P7kVbqxwoX8aIKnCpRL iyaPEmCPTGmMSsL+R8mKKb4nnrrAQp1HxgtuTtilKHvlCvfaf/W1c/VC X-Gm-Gg: ASbGnctmfDWM1lwxBLGgNeYIcTMVZaV8f3r87Zimjf8+UZ2+MmniHoNQiLCI1YRIvBM zpMDa/GzdGOVOOdUxJTIv1fy4oyiWfqKj9r0bMUYcmL5kdvte3NummiILdPFvhCji+rQHxpa/VE +skNCS7bhEKUJzqfGgyQfvF4+xGHqjPV/+zQhDBqduew7gp5ugh5+lo8QMen2dD+x11i3pdF3ma EELBiwYh2EgwsGt4Ww5+ldGHiG2lTFon4m6k6ZNXkQMdgjvWvuQrnXyIfrTjo2aDpdm4LAp5enb ynz9ESWBlm/TjIeRu2QcIQ585VfgzxD8mL4nJ5bIAlw2Pq5Xz0fRUS87L+Zs2ewjJJgPqnRuxl+ fp/bgAbViqce6TFTdGpIHmlcoH+VNyXXpP3/LF4lQd/PQ2wwdodOL6auMnuDpQ1chtPd5oruC4y kAb/Zo X-Google-Smtp-Source: AGHT+IEIxQpdQZw9IFKM6GkKs8PA8f+U5OCrvyQ+PS7f6GecPMBZQ2UgOnxVC6Oa4dBFEglr2r67mQ== X-Received: by 2002:a05:6a00:21d0:b0:782:7052:5167 with SMTP id d2e1a72fcca58-78af4037519mr3605130b3a.6.1759319864200; Wed, 01 Oct 2025 04:57:44 -0700 (PDT) Received: from localhost ([2804:14d:328a:a59c:d00c:5a24:b518:cb4a]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-78102b2915csm16342901b3a.55.2025.10.01.04.57.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Oct 2025 04:57:43 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 01 Oct 2025 08:57:38 -0300 Message-Id: From: "Matheus Alcantara" To: "Arseniy Mukhin" , "Matheus Alcantara" Cc: "Masahiko Sawada" , "Rishu Bagga" , "Yura Sokolov" , "Daniil Davydov" <3danissimo@gmail.com>, =?utf-8?q?=C3=81lvaro_Herrera?= , "Alexandra Wang" , "PostgreSQL Hackers" , "Tom Lane" , "Joel Jacobson" Subject: Re: LISTEN/NOTIFY bug: VACUUM sets frozenxid past a xid in async queue X-Mailer: aerc 0.21.0 References: <202508061044.ptcyt7aqsaaa@alvherre.pgsql> In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun Sep 28, 2025 at 10:17 AM -03, Arseniy Mukhin wrote: >> I agree it would be great to have more tests for such cases. As for >> the 'committed field' patch, I think we can add a TAP test that shows >> that listeners postpone processing of notifications until >> notifications were marked as 'committed=3Dfalse' in case of aborted >> transactions. I tried to write one, but have not succeeded yet. Hope >> to finish it soon. > > I finally managed to write a TAP test for it, so there is a new > version with the tap test. > > I also realized that we can increase test coverage in > 002_aborted_tx_notifies.pl if notifications of the aborted transaction > span several pages. This way we can better test > asyncQueueRollbackNotifications(). So I changed > 002_aborted_tx_notifies.pl TAP test a bit. > > And there is a small indentation change in lmgr.h that should fix this > git am warning. > Thanks for the patches. I've created a CF entry so we can get more reviews and comments: https://commitfest.postgresql.org/patch/6095/ Let's see what other think about the approach being used to fix this issue. -- Matheus Alcantara