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 1uoKLr-002E4s-SP for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Aug 2025 11:18:05 +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 1uoKLq-00A7Mz-9e for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Aug 2025 11:18:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uoKLp-00A7Mr-HW for pgsql-hackers@lists.postgresql.org; Tue, 19 Aug 2025 11:18:02 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uoKLn-000dwj-26 for pgsql-hackers@lists.postgresql.org; Tue, 19 Aug 2025 11:18:01 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 4AA1B14005FE; Tue, 19 Aug 2025 07:17:59 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Tue, 19 Aug 2025 07:17:59 -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=fm3; t=1755602279; x=1755688679; bh=gt1XHhhxaf blJyKXzWLuHDRnTJoTD5BsFnY6tXw2Yzo=; b=CvGCB6HyCnKDwN00z4SMZenKtO xeKBy/er/K9vWOZwjFW8/tvrUyPdy6XUEo0xSZZEkG4du65W1r/X2xbM0ycGBd3k 2J9o4wqLvYYDxGC2HvbTVmWmVzenwFWJTs5SjeqcbG2I30Dqg7gloVpz4Wo2wGht ELq0Hi8TbeWNrRICLgkw5hwrhoFvO6zHHeQ5Ca/SFnIdRMzJcVXqEa8/fpbDaX5y 6PzlzGwEU+PDcghFjfmPQdAFfwcOnrWjKFpbyq7FKvbM3oFyOFd+B/8Z8UgMcyd/ +D5ckxGBFBKsHttfg5RNG1Wfi6bBj/3gPIPb1aF4qFb7Wgenjs1bgyL6AsHw== 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=fm3; t= 1755602279; x=1755688679; bh=gt1XHhhxafblJyKXzWLuHDRnTJoTD5BsFnY 6tXw2Yzo=; b=Jm2l+yrcwG0K6yjFm/HE6gZbwAJOhlFLf3TXJEIe/sFkez0bqnB J8CtxKstMpXiIKNIVQLmQhjVEndPbHjyoQ3aBLXjrn2SxQhUZAJZA9lk4E2ghJc7 Rkx5nCMnunmFVKyGyianVDYEfLFbNkVeUIedBkHZJ3Hd3fcsOI5nPLIaC/SILAh3 NAoF2R2l7CKKjiM/Acmuis/yATiZvFwzz8Ys37tmflKLFdjpDqxyyOrqpjaVCGIc 2gA5Is9Rv+NygkFcvk4k9dadZyae9dugRET1ICGekNSz2mazCFjcTM2cyLkPuBDv R+mwDwTmbNjR9DBFafqWIp2KaC04bGZNBqg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduheehfeehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepledpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepkhhurh houggrrdhhrgihrghtohesfhhujhhithhsuhdrtghomhdprhgtphhtthhopehpjhesihhl lhhumhhinhgrthgvuggtohhmphhuthhinhhgrdgtohhmpdhrtghpthhtohepmhgrrghshh grsehgmhgrihhlrdgtohhmpdhrtghpthhtoheprghmihhtrdhkrghpihhlrgduieesghhm rghilhdrtghomhdprhgtphhtthhopegurghvihgurdhgrdhjohhhnhhsthhonhesghhmrg hilhdrtghomhdprhgtphhtthhopehhohhuiihjrdhfnhhsthesfhhujhhithhsuhdrtgho mhdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprgdruhhspdhrtghpthhtohepsg gvrhhtrhgrnhguughrohhuvhhothdrphhgsehgmhgrihhlrdgtohhmpdhrtghpthhtohep phhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 19 Aug 2025 07:17:55 -0400 (EDT) Date: Tue, 19 Aug 2025 20:17:49 +0900 From: Michael Paquier To: "Hayato Kuroda (Fujitsu)" Cc: 'Paul A Jungwirth' , Mutaamba Maasha , Amit Kapila , "David G. Johnston" , "Zhijie Hou (Fujitsu)" , Tom Lane , Bertrand Drouvot , "pgsql-hackers@lists.postgresql.org" Subject: Re: ReplicationSlotRelease() crashes when the instance is in the single user mode Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FU/aEACb3LwT3C52" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --FU/aEACb3LwT3C52 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 19, 2025 at 10:26:22AM +0000, Hayato Kuroda (Fujitsu) wrote: > I added a first version of the test. It could work on my env (Linux). You could also validate that using the CI, assuming that you have a cloned repo on github with the CI enabled. See src/tools/ci/README. I use that a lot with local branches for pre-commit validations where things could break across the board. > Since I cannot come up the appropriate place, I introduced new test file in > recovery test. creating/dropping/advancing a slot, and doing a logical decoding > is tested. Since standby mode is not supported by the single-user instance, > I did not test the slot synchronization. I have not known that. Hmm. src/test/modules/test_misc/ makes more sense to me here. (No need to send an updated patch just for that.) > IIUC, 0001 can be backpatched for all supported branches. I will create for them > after patch would be a good shape. Thanks, I'll check all that tomorrow. -- Michael --FU/aEACb3LwT3C52 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmikXV0ACgkQnvQgOdby QH1oUg//ctcdimmlLnN2n8RTm8pmmuymY41lVGWX8NnQzrxkSnGG0f3zbh8WbpcI JYQGJEpvyV1NktbrG0wJV0rL4g2z2sQTU8F1XYhuX2GNFfdh/m7Vit9C2FhQzRZ5 gVm4bfDEutw5HuZR+xsRFyrS+owwpCzn+oRvs8KEdaYowB379idjNAHU84wBn1r4 gk0HWbbTVoBfwIVcXCvyDAw6RyDlWNA5SYUMZWS11hsooFqko2NDayIY3cw2/Jah hbNjy6EKDfD1kTWN53hv+LDrlPCOWUFFyKqedKrTkU7vgX/aaiegaPKOYZbxIDmE EErTgTxhrEPvasWyFz/1VD1PDGVtHQrbuiRRfK8XlrKsCdHrnukrMEWg3riKxJiI a+f7DcH13eoVjgEGdIdI913otAlUZeMnL7jMD8Mb64boyUiJJJN5xAkPLKWxAnFx mwAqanoJlJhIJTRO02utTk4nj/O3wwshb2GnjEaOUuZV1AEtGPgwDh4hpHpke/pl 0e5uuvK7ExMPK1GiEtqSz0t0MxzDiuT/duibckFQx/TNOSqe1ZiVeBQJ+rCwHU44 oJwEMuenQh1sjHENdHIqUzraPWzFBsIeVHdkJKB2QwsswUut0pR2/rfKb0nBck+s Xq5GwWFV8NGIlMtMT+FLdfJPc719cqZ3syJsz6yKBaeFZS1OyT8= =cdvk -----END PGP SIGNATURE----- --FU/aEACb3LwT3C52--