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 1tkGty-0027jM-33 for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Feb 2025 06:16:14 +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 1tkGtw-007847-Mm for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Feb 2025 06:16:12 +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 1tkGtv-00783y-Jw for pgsql-hackers@lists.postgresql.org; Tue, 18 Feb 2025 06:16:12 +0000 Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tkGtr-001VAq-2k for pgsql-hackers@lists.postgresql.org; Tue, 18 Feb 2025 06:16:11 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 261FB13809A8; Tue, 18 Feb 2025 01:16:05 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Tue, 18 Feb 2025 01:16:05 -0500 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=1739859364; x=1739945764; bh=Z3WgdJilc2 LMB4ZqqXgPygUaXHPkqA7oJ/O/19JWE10=; b=GpTgtFr1dmG0wb4tHZgeLKXtk2 cEGz8rxbBfTG65U5ga5FTiwY6AijuMiWR8upRLczxL4ts11VYmWkJ59+3e7itI65 mBXLgXaxVTTnMF8mXNqnUCOYZxXV2IcZd0UKKhkd9xMnxcF7Qb6I80cEvSbRCp40 n4xJW8wV4g4Lvz2NLr37bW2TeeW4a9TtUMHaLK18txomo6ji/4Y/QrRmwXp6BqOG PK3CjogllvKMd3X4cCxIlXkJTtnvX0eyP4LZRsjHAt6LYMLcEKph5+XCpoYAL+g8 6EolAP/5Gc0Fu5pcpIf0wkYLs/WfJR3j6RvQZbfVdcmTjecro2/J7UgAsS8w== 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= 1739859364; x=1739945764; bh=Z3WgdJilc2LMB4ZqqXgPygUaXHPkqA7oJ/O /19JWE10=; b=fvtuF/A9EmtQmRMua7d1ohmy/vgpDYc0zTPZGFe/zCeTAncxcU2 U8+uWGkc6y2ryugqxxKWF2OIgiu1HB/jvkCWXS+n4vBuCw+sX6q4ylCt85rLwVff 8toe77Ub1he0zUkgfkukFqCySRiCK9ExE/bx/y9l4IvH4wMvB3JhAlKAAOM+D2bJ IGZqpjQ1tCVzy1lts1efnODmIaUHuLAAg/vI9X+H9818EDApIdBWLOwnSZk8i/n3 3UTo+xxSBYyjmzIB/TvS04V1GBEayocxF8gQ+Ii2zbu9VAeVl+1yKPAxK6Nik27s JlXnMVa2x0BQrEAA8FhNEdAdVPFn2bZHDHw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdeitdehhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenfghrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffk fhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrh cuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeet leeifedufffhhfdtteelgeeggeffhfekueevteeigfduudevudetgfegiedvjeenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghl sehprghquhhivghrrdighiiipdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopehkuhhrohgurgdrhhgrhigrthhosehfuhhjihhtshhurdgtohhm pdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvg hsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 18 Feb 2025 01:16:03 -0500 (EST) Date: Tue, 18 Feb 2025 15:15:48 +0900 From: Michael Paquier To: "Hayato Kuroda (Fujitsu)" Cc: "'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="Sdtmyq3CXS8Gv0t4" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Sdtmyq3CXS8Gv0t4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Feb 18, 2025 at 05:33:05AM +0000, Hayato Kuroda (Fujitsu) wrote: > I found $SUBJECT when I'm playing with the single user mode. Perhaps a very naive question, but is there any point in authorizing manipulations of MyReplicationSlot in single-user mode, to begin with? With this remark, I would mean to apply a rule to ReplicationSlotAcquire(), so as all its callers would know about that. -- Michael --Sdtmyq3CXS8Gv0t4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAme0JZQACgkQnvQgOdby QH0lsA/9GH7Es05Fz8Fmvxc9ghvH+FB64Ekyv3zJR0bM9A3MOjn6MAFPslw5P1Jz 9QZ/b/2w8BLpQbPGgC4Q8Qg0M9uJBHQQ3hfYPbf0wahb9kBtftfxV6b1E+M7SkkS 89S64mp9XCWHYioHVAAhDbjUt3PEJ8njNKbjOTqKZpZ/lla+CByZMh0/Ognu81fw 5lRaaB3h9pxuspig9d3rM0M67mrFdna4p3YEhSps5eb+RQK7qv1Ji7W72dygL+8R 1YpaqXJiqRKg6RyIDmI9+aU5tsJirs18+6ODfHV4NRZQw06UHE6FVEC3HMRnjVTX od0gNJxnqHaaSSyp/jqAbL4EeXT+ZSaOfNaVdaqXkCj5aAus6Y9EJxklUNJMzHtF 17FxNTGTko1Ak5Ufm/0Hjc6dRkmQJOxYk7zeggCqUq2lse8SvMwyUA+ny7JF/UNM /IBMI/zc4FW2Eh7fhjFLRYsZLMw1i6TCyG65BZp9//6m/EUuPstGpFob7RI1df/S P00jGZhutZyPl6mSAvaCebIWAsCL2W4jCO8sfyGLHcMOndO+VgxaGCwUVmBvLtMD fbif9POe+yEvguU+w7xaJhEsxS7gY/QsbHK84s4Mr3kMAF0lMycwJ0a4b3DnGU1M hLcHN8Q7I0BypE+yW8pdaCxgBH4wGVpS2EVqgvRoP90FnOWLJ9Q= =LTPF -----END PGP SIGNATURE----- --Sdtmyq3CXS8Gv0t4--