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 1uekiG-00DwN5-Br for pgsql-committers@arkaria.postgresql.org; Thu, 24 Jul 2025 01:25:37 +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 1uekiF-005Pe2-7Z for pgsql-committers@arkaria.postgresql.org; Thu, 24 Jul 2025 01:25:35 +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 1uekiE-005Pdu-Eu for pgsql-committers@lists.postgresql.org; Thu, 24 Jul 2025 01:25:35 +0000 Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uekiA-000Vhm-1k for pgsql-committers@lists.postgresql.org; Thu, 24 Jul 2025 01:25:34 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 94FC3EC1F5C; Wed, 23 Jul 2025 21:25:29 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 23 Jul 2025 21:25:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1753320329; x=1753406729; bh=DRSlqhXbS+ YPmERlTznnUgJwglErdKus4lCdbxucCQg=; b=GdUjJ5GgqitLr+m+TJ5e9BsvMe YOPyOFfnzwsBfJm0VFlAkDjLEzSgESR08lZfxi3PbsddjXtKV2Bni5SQebzN7Rot YLFp6QECyc/S5EQn3ZHZ3/HkebYxXs0yKypu3lfYXwtf6igu5pAwz1qiQbCG3aRK taWbNbsI31anXRe2TZwMPZe0fUzkTyY2QU+LerHJ3N3ybbTCxfipuS+PbVHTf8II MiPqMn/Y37w60JR7tus4ZNBxmf9ufgFiiOZtJ4iQ9mQFKU0gRHpIpINWcl8oKidN 4cT9XQcTnAz2ojD/TTms8HJjNoxHilxpwtQqUmHlhMhq284YJMadAwGFOS2A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1753320329; x=1753406729; bh=DRSlqhXbS+YPmERlTznnUgJwglErdKus4lC dbxucCQg=; b=Is/AapJjZRGJ0qAT5fPbzLKbCSWe4fwVEH7JOUR5KIzTUb5vRJY JSOz/F6Sg6MSY3PD7g3RGjgfz+NvKd3vxc4ocpi6+4e7SKHaDlREU2TEDBp1+mTx 4x0lqt/8bURbqQbZs9xFYCDn90b272g3E7Anj71MWVS3yyxqp+K3E178awmxxhTf WWAXil98oo5RupTdJdWQFoZE3BxMhAGcIWq7WLRpSvwzgXysJ1AQOkgYG+g7+ut+ sz9H5fcULKpmPwS7zVHgmrZ+MAaxCMdBxaJD+Fdo+V26fOPxzGpxA1BZoskSO/tT kklIONHl6eic1qg32uDxaVeFQPuEn7TvDNg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdejleefvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculddvfedmnecujfgurhepfffhvfevuffkfhggtggujgesghdtroertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeduvdetjeduffetfffhudfflefhhfei leethfeigffhieeujeejkeffgeeglefgfeenucffohhmrghinheptghpuhhtuhgsvgdroh hrghdptghirhhruhhsqdgtihdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhnsg gprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrkhgrphhi lhgrsehpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehpghhsqhhlqdgtohhmmh hithhtvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 23 Jul 2025 21:25:28 -0400 (EDT) Date: Thu, 24 Jul 2025 10:25:21 +0900 From: Michael Paquier To: Amit Kapila Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Preserve conflict-relevant data during logical replication. Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/QYWpZw3sUSa9zqO" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --/QYWpZw3sUSa9zqO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 23, 2025 at 03:35:06AM +0000, Amit Kapila wrote: > Preserve conflict-relevant data during logical replication. >=20 > Logical replication requires reliable conflict detection to maintain data > consistency across nodes. To achieve this, we must prevent premature > removal of tuples deleted by other origins and their associated commit_ts > data by VACUUM, which could otherwise lead to incorrect conflict reporting > and resolution. Some of the tests added by this commit are causing blurps in the CI: https://cfbot.cputube.org/highlights/all.html Example of one job (triggered it once myself with a separate patch): https://cirrus-ci.com/task/5397273342902272 [21:15:03.131](0.028s) not ok 7 - altering retain_dead_tuples is allowed for disabled subscription [21:18:48.295](225.164s) # poll_query_until timed out executing this query: [21:18:48.296](0.000s) not ok 8 - the xmin value of slot 'pg_conflict_detection' is valid on Node A [21:18:48.306](0.010s) not ok 9 - warn of the possibility of receiving changes from origins other than the publisher [21:18:48.412](0.037s) not ok 11 - the deleted column is non-removable [21:22:29.286](220.874s) # poll_query_until timed out executing this query: [21:22:29.287](0.000s) not ok 12 - the xmin value of slot 'pg_conflict_detection' is updated on Node A [21:22:29.297](0.010s) not ok 13 - the deleted column is removed The failures happen on FreeBSD as far as I know, that enforces some rules not used elsewhere:=20 -c debug_copy_parse_plan_trees=3Don -c debug_write_read_parse_plan_trees=3Don -c debug_raw_expression_coverage_test=3Don -c debug_parallel_query=3Dregress [...] CPPFLAGS: -DRELCACHE_FORCE_RELEASE -DENFORCE_REGRESSION_TEST_NAME_RESTR= ICTIONS I suspect that reusing these options would help in reproducing the problem. These are not commonly used in buildfarm animals, reducing the friction to make the instability show up. -- Michael --/QYWpZw3sUSa9zqO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmiBi4EACgkQnvQgOdby QH275Q//R0Ndp5Vm4jcmHZQgoSDZEiGyLwFsq5rVrQt2qgKqKFbzlQFTB2cRS2/8 5tWq2bsO7UkcDFD32daq1GfMxSkiRd8fmgxkyOAkCPLMPnCf0b7uo08/GtX9ww2y hcW09udgQr4LoEzcno5gMs1Wh5UodwavxlPq3rF+zR57L6BigWaHmD49SUY0Nyhl Bfha5jTPShrsWJJdROG47dlZ/uCOgLLt7ZejVd3wCgkuhNhmSyBTpAFAo8BxgIFR 681+Iybgadtn/qEKtNt0z3WyW+r6wQV1Ae6soWkzz34YTJv9lvpbM4Jp+yoPov02 OcJNlMwKmaXQ4qb0xlq7bjVNugB4bSCybosqG/j1q5r7OEWd5sdcrV+4zKd2Pvl7 Acz2ALoTBM7MnGm0Nbw71sQrUjLjolXGg61I8u9PyK2NbHVzDEg65b/rL31F9zkX YTF5eYyVDqoD4fBUODcxNTOPBvHr8UofCiPpJoalau8AfO5NfXoVAp6xt5xlD6l4 h025S5PwjxD4SDg1kRuxWoxYwwVLQ/jiI96pvY+ydnCFbXnTRrSViUmxxuQAX2Ce fjlkTqddOLnAJXksQJUqzk5WKuaRQBb/dy3RM7sDP4bRH+B7jbTWtev6iZSBisE5 SHHqGxEU8KfdpaxlB5+paIHbCFEB8wXPF73PNYLRyXDKXL7ju0w= =JP5/ -----END PGP SIGNATURE----- --/QYWpZw3sUSa9zqO--