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 1vAuUF-007O6g-BH for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Oct 2025 18:20:02 +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 1vAuUE-002xL1-9m for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Oct 2025 18:20:01 +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 1vAuUD-002xKr-UQ for pgsql-hackers@lists.postgresql.org; Mon, 20 Oct 2025 18:20:01 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vAuUA-003HGs-2U for pgsql-hackers@postgresql.org; Mon, 20 Oct 2025 18:20:00 +0000 Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-b632a6b9effso3041015a12.1 for ; Mon, 20 Oct 2025 11:19:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760984396; x=1761589196; 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=VyHuS6/m6LKSn748uM1tHucyGb3l8nEIc1v/zM2cr1I=; b=NnRPsFmxH2KUeLebD/dHGzsQXTAa39xAlzzpLD/KH1KOybyLTN0Mz2V8hQ4Tvbb0pu /iEk31SeSoSkgCxA8vDKDZFi3yBU3l231fwiXO+vH10kqwnqyyPjonFAdwTcUcGXdnLg TP5g3H3yNjlOSL8+YCj6vlLb7uqYy6kaUDJBZVqUyQ8vtUJwOiUkQP1d6tdjqfJGG7uI Z8ilKNYFzP5RnXgjl3+gCGLA55pyPrMhI/ab7ML5FnIfghkFVWFcQ7i675vo2Oa/hEK2 FHASF5aanHUv2aO8GDIoufMBwGV8AlGOMHpbENTy+FGorZS983UALeMJ/mQWB9JgF+uI TjFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760984396; x=1761589196; 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=VyHuS6/m6LKSn748uM1tHucyGb3l8nEIc1v/zM2cr1I=; b=V71Ckb7Vg0iD3qDLvjpVNz1RmQ+ciBdVGjXcajeRQLxO9hXHh6YKXceoA2nEBqECtH rIvFDTWXFzqBfpUIWfkd/GVkKGjasBcx32GYKwSU2YO88RXEHPz0Nzj+7C122xgLdvJ7 htu4SNE7WxabMHzBmrwp6fGQriAJ4KXX9cF71hmS1nBbkT/ernEv6/xWYMiWlXuW2laV b7jrGfhDV0pFhTWAsiS9apJYa+A7BjR9L2QF6N7BjhXyWpqWCdJbY5uH4Lx6t+yJr69A cNrJd5z+4zQ75gm1PSvT9BPu99dgFj+TPJwUbDM7nQHoVySG8492RtgAlJpw+wuzHaVi u5Uw== X-Forwarded-Encrypted: i=1; AJvYcCVfHWdEExHS3P2KJkz49uWbNsi3Y55CLDtxBcPNun8u7Xl8y4GD31/j2ZlQsD+2cb2LovkJLH4ZkWprh9/N@postgresql.org X-Gm-Message-State: AOJu0YyN1W9o1keaOjQIX9LfPnPuNBGoc9mLqJcyQqF7Gl5/l+RXVCBM mdDCaqxjIUTak4ran6vUhf+EV2L5XwvBn+DWAhQLM7BuvC+i9GS3ey/8 X-Gm-Gg: ASbGncsJex8Hvte3JgLICLmdPVgX6k1Iz0uUWnPW3HDfVItqmTz6BVTzhuwur6YcFoP 81MDsmgG1sKDxGE0BKnad9qzpsnp2liUywwi76iWWHz3588JlXbgAvn0sve1v9Nv/+wDQ10vLX0 ZVi0v+sK8bXPd6gxb3kpObvEKbm1kag9YpcSLKqQF8RqSlvi3L+36aIckHST062MAE6HW+ut9Zc rcef7BDqKnFyNxrwXh8apiJ3tdD6QlirhDeegaQu56bSWvg2JC5vjYCONQnZafN/FaQeJ2Un2WE qPDlxMwbk+XlsjIib39hTQa3HxfCebsghULOpsQFl4SBd3KmnSYnhUui1Vl7/U0q1babgpNGnEd p9l4QSbnWMbsvE+3Hj/TU79ggXtnPuzGEPjZaICEcJwhYHM7mu+cWqKwD5jF6vgZHLrYTIIDTCb IVcu7VyFYPUdGJRuai2Q4ckVI= X-Google-Smtp-Source: AGHT+IEzSLqsivMX9CXOitwCJdEosH/1lAAisba6C+dp8I7rneU4a5oLkiwSLXpJJW1RbPhTO2BsZg== X-Received: by 2002:a17:902:c951:b0:25c:b1d6:c41a with SMTP id d9443c01a7336-290c9cf3517mr185379175ad.11.1760984395880; Mon, 20 Oct 2025 11:19:55 -0700 (PDT) Received: from localhost ([2804:14d:328a:a59c:e05c:11ed:b9c4:ebee]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29246fd7e56sm86422225ad.31.2025.10.20.11.19.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Oct 2025 11:19:55 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 20 Oct 2025 15:19:50 -0300 Message-Id: From: "Matheus Alcantara" To: =?utf-8?q?=C3=81lvaro_Herrera?= , "Matheus Alcantara" Cc: "Joel Jacobson" , "Arseniy Mukhin" , "Masahiko Sawada" , "Rishu Bagga" , "Yura Sokolov" , "Daniil Davydov" <3danissimo@gmail.com>, "Alexandra Wang" , "pgsql-hackers" , "Tom Lane" Subject: Re: LISTEN/NOTIFY bug: VACUUM sets frozenxid past a xid in async queue X-Mailer: aerc 0.21.0 References: <202510201414.56f2msqusjla@alvherre.pgsql> In-Reply-To: <202510201414.56f2msqusjla@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon Oct 20, 2025 at 11:18 AM -03, =C3=81lvaro Herrera wrote: > On 2025-Oct-20, Matheus Alcantara wrote: > >> This is similar to what was already proposed at [1]. This approach was >> abandoned because a notification on the queue may block datfrozenxid >> advance and clog truncation which can cause other issues for the users [= 2]. > > Well, I think that this is the right solution for backpatching, and that > you were wrong to abandon it. You can continue to design a better > mechanism for the master branch, but in old branches we cannot really do > all those things you're proposing to do. >=20 I actually would prefer this approach TBH, but since this can cause other issues like transaction wraparound due to not consumed notifications we would need other mechanisms to prevent that and I'm not sure if users should expect this kind of behavior changes on minor version updates?=20 I think that to go with this solution we would need some way to drop too old notifications from the queue to advance the datfrozenxid, so I imagine that we would need some GUC to make this configurable and we can configure a default value of course but some use cases may not be the best configuration, this is something that users should expected to deal on minor version updates? Going with the "self contained" idea sound more easier to backpatch actually, so this is the main reason that I abandoned this other approach. Could you please point what make the v8 version not visible for bachpatching? Thanks for the comments! -- Matheus Alcantara