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 1vGx4S-0092qQ-KW for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Nov 2025 10:18:24 +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 1vGx4R-006wef-Fx for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Nov 2025 10:18:22 +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 1vGx4Q-006weX-Ua for pgsql-hackers@lists.postgresql.org; Thu, 06 Nov 2025 10:18:22 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vGx4N-006Hop-0u for pgsql-hackers@postgresql.org; Thu, 06 Nov 2025 10:18:21 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 6B5097A013B; Thu, 6 Nov 2025 05:18:16 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Thu, 06 Nov 2025 05:18:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm1; t=1762424296; x= 1762510696; bh=rv/nIew6MkF0cuCi6rbJh/qD5XjkhSROV6D/h1eg7Ak=; b=X QJ26lUaRMQjWDVQ6NtR1gj/2own1/UwafbnwxYIVrnXRubZ4GWFecJKZZxgfyZEC rb+uG7i0wVWnoZA3DA0yT4G1ACZblTI/Px5pksFDc7R9ruglSrt4hVEIuWz/zcab LaIpMwHbZyGNVRISi/1nupYqdvvIgucR2mvmW5J32IRxwBVMn7cjNhiAfsdf8pE0 4ideCaJirFg9sAtzzaMixnzIRM3SPF5nT+8Ww9gfgLP4HwgkpXLkx0aB05naZ6lb 53Sd9ei73B4HbeUCYDHxUUptayN056rS6HqjodyzIlPVomTTvfrEtN9NqdiCViev vfI89zPn0tk5HjXIhXy9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1762424296; x=1762510696; bh=r v/nIew6MkF0cuCi6rbJh/qD5XjkhSROV6D/h1eg7Ak=; b=wtKEj20/ILCIvaocu naBLvgUh2zMCfttZXLMXFyo/tvVc71pKQASq+wVk9kZ0oyY41rrkNjiKLtOptgs6 TndmgoFYmQmSg+mAY6sTCI8Jx7dSCaMoJqUgByyTPF6G+nf6DPilTSbes0UjXqPg /N+IoitlWpRavJC8q0sJ2GVo5v9VFH5PtFj9laKMHvIDEddAN4sjBleLY0aplYCJ 5Y3+y5EydUoxCVO1jMcOZLSQMIIEd4X+cfe2UYXBy2UVIubR4Hb7CMMO4SEvIp60 t/QA2lN6b+XDuZl4hOhIbz704FuZO+7Hx/xCy9qZ6lcfSmwOwER4C8SFmUJ5yMxI l5iUA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddukeeihedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpedtheehtdekffffteefkefhhfffgeethfejkeevueevudeuudegffel ieevffehfeenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmpdhpohhsth hgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgdpnhgspghrtghpth htohepiedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepjhhovghlsegtohhmphhi lhgvrhdrohhrghdprhgtphhtthhopegrrhhsvghnihihrdhmuhhkhhhinhdruggvvhesgh hmrghilhdrtghomhdprhgtphhtthhopehmrghthhgvuhhsshhsihhlvheljeesghhmrghi lhdrtghomhdprhgtphhtthhopehhlhhinhhnrghkrgesihhkihdrfhhipdhrtghpthhtoh epphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthht ohepthhglhesshhsshdrphhghhdrphgrrdhush X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Nov 2025 05:18:15 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1762424293; bh=lCANl0NxEwOh+97bw5hU46PyMs9cx0HuXOu60q75QUY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=66J1knNMl4sGenv+7BsrjUgZQ61+YSuWDdaYjof5DAHAwUfUHgSMIjgm6sYoE74Pb vzAXN7gI5XZNGPSoOM91dY3amyTksULWlJk3+IQCoGvvqjLbT8yTjPV8zhlqAOFMXn UKJ3mj/6sIppGYiGn3zya9GKAOJkTr5gQFRAEkwEbAzd3fnKZTYqhgfrk4SgXBosvX pIf4Gzk5N08ZKLpH6U/V3E7iO0jiNW1nibWVwG9lfLZyTiK8g00g+bb3lS7Jki6OSF e0+J/gisOrUfEW/zOC8YtYjpppQq6IEcmlGEHaezh2LlcyAuEgG7cRDHC5F6ZbWVLJ 66WGJXc823ehQ== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 11D2B76; Thu, 06 Nov 2025 12:18:13 +0200 (EET) Date: Thu, 6 Nov 2025 11:18:13 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Matheus Alcantara Cc: Heikki Linnakangas , Arseniy Mukhin , Joel Jacobson , Tom Lane , pgsql-hackers Subject: Re: LISTEN/NOTIFY bug: VACUUM sets frozenxid past a xid in async queue Message-ID: <202511061014.6poayht26qnn@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Nov-05, Matheus Alcantara wrote: > My only concern with making these errors FATAL is that if a notification > entry causes a different, recoverable error, all subsequent messages > will be lost. This is because if backend die and the user open a new > connection and execute LISTEN on the channel it will not see these > notifications past the one that caused the error. I don't think things are supposed to work that way -- I understand that an application that connects is supposed to read the current state of things, and then the notifies ensure that any changes from that point on can be processed. So if a connection dies on a FATAL, then you have to establish your LISTENs again and obtain the current state of the world at that point. It doesn't miss anything, because any NOTIFYies that occurred while the connection was down should be obtained when current state is read. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "This is what I like so much about PostgreSQL. Most of the surprises are of the "oh wow! That's cool" Not the "oh shit!" kind. :)" Scott Marlowe, http://archives.postgresql.org/pgsql-admin/2008-10/msg00152.php