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 1tnqpO-002mEa-71 for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Feb 2025 03:14:19 +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 1tnqoQ-00CDOW-TD for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Feb 2025 03:13:17 +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 1tnqoQ-00CDOM-Jl for pgsql-hackers@lists.postgresql.org; Fri, 28 Feb 2025 03:13:17 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tnqoM-0005WX-31 for pgsql-hackers@lists.postgresql.org; Fri, 28 Feb 2025 03:13:16 +0000 Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-2fea8d8c322so2536820a91.2 for ; Thu, 27 Feb 2025 19:13:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740712394; x=1741317194; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jj6H0ZsNSQZ+BEckQhMf/ENsMuuaSs3Av7MChCEprJ0=; b=DlktGG19E8K4ggYFA1TNJjfcEQjOSpOdRLCbOp58tjleIqmVGEJZnJnyM24yw6FzqL Ta9CBC7Oca7JEcSrA8t4IRMn7Y7kkelkCcD9ZhmFTza9kLWp7p4Cn/kA/x11MpwKjUWq AXS0CqoElE753gZ2C2xU/kL+ea06LFnyKeHF6GI5pi6SbkBfdLH8krlo3BBZjfZ2dnOZ IL/MSvfPqthQHJwXaJBD71HC8V3DFzyIVQAYufyZjjKP5Z/p5vQKZuTEuKwWgYkkTsmg DDLJRJZSqcGPNExPvLrCRYgFip7hcBUSAjACkzKQYzBm4rpz39fx5uzprRpyQZ/ZqMKt w6vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740712394; x=1741317194; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jj6H0ZsNSQZ+BEckQhMf/ENsMuuaSs3Av7MChCEprJ0=; b=xO1DZNiTLoWwcbL/ldGl+rh/e+6h0qBl1bV8OqbjN529D+akiowwia6ZoUcpzThI7l ZnDY33qDSvxFbgCJ9eWTnW90i3+/An8Jm7WHFk4Y+alfatwscsYrBccFm3iHnP4FcFKj bnfcXSWzsZiByo4uLYcxZFTIggMe5IGhtkJ0srBWEEbGIuHZmrzeEA6Q1UtJu9/J9qrP YniPEh4f+wZLRFYEJaIiAVcUTw0GiT0F4egB/7nr/ZCogA1emrbokKFxtavBDVmdMLwg Fg/rA03Vwv4OyekW33LV2snyN3D8KMuFTdX6NiVYN4omEctT1xJdcu6ws8AgqV4l/tcN U49w== X-Gm-Message-State: AOJu0YxjEs7mPw+A0z+Nw6yZy3TzbfnXVZRkv21masbCtX5nUM6bKLj8 a6808hJQIEyItaWrCKJt4QW/ErvI8DhlHj0vLeTXZeGbtjJ7QUQ0eAbdm5TyB3Wa/Du/656O/jL W61i7IQGDffewxX5hfvgS6TNl89g= X-Gm-Gg: ASbGncsQeRMUgEGzp6CuDBXRaRPCiNLJ3kIsczj1nfpcKsmtXMiBOWnnCZfw5frGfoX BQlhWsE6txJqrJ1UaI2sfqMq5CriggZTfQAyCxjU2u59tuLBnsHR73IrvK8y+mXZjbLfXZUuXsd FvdGqlsJ5D5g== X-Google-Smtp-Source: AGHT+IH58yr+IJ7IjmICA3pOmcMJuwzIKZhOCyfP3QkwbMPEmLaiv2+UjlaQLPtGoteq9t2tpouAEtmCpP6kGaUdibI= X-Received: by 2002:a17:90b:3509:b0:2f9:9ddd:68b9 with SMTP id 98e67ed59e1d1-2febabd9c6bmr2600098a91.26.1740712393753; Thu, 27 Feb 2025 19:13:13 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Fri, 28 Feb 2025 08:43:02 +0530 X-Gm-Features: AQ5f1JoxrhHlNYibxqcDYUHt_clx7oGz8lHM1IyzNppOmSyzG7jR7hlMNZNmkjo Message-ID: Subject: Re: ReplicationSlotRelease() crashes when the instance is in the single user mode To: "Hayato Kuroda (Fujitsu)" Cc: "pgsql-hackers@lists.postgresql.org" , Michael Paquier , "David G. Johnston" , Bertrand Drouvot , "Zhijie Hou (Fujitsu)" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Feb 27, 2025 at 1:29=E2=80=AFPM Hayato Kuroda (Fujitsu) wrote: > > > > > Which other functions do we see similar restrictions? I checked > > "sequence manipulation functions" (1), and "Transaction ID and > > Snapshot Information Functions" (2) but couldn't see similar > > restrictions. > > > > (1) - https://www.postgresql.org/docs/current/functions-sequence.html > > (2) - > > https://www.postgresql.org/docs/current/functions-info.html#FUNCTIONS-I= NF > > O-SNAPSHOT > > I grepped sources and could not find explicit limitations neither. So...t= his might > be overkill. > Yes, this is my worry. >=E3=80=80But I still think the restriction is OK for the slot - no need to= do > some efforts for accepting single-user mode, just close the cover. > I understand that we may not have a clear use case for this to work in single-user mode. But how will we define the boundary in similar cases? I mean, we should have some rule for such exposed functions, and it should be followed uniformly. Now, if one needs a bigger or complex change to make the function work in single-user mode, then it is easy to take an exception from what is currently being followed in the code. However, if the change is as trivial as you proposed in the first email, why not go with that and make this function work in single-user mode? --=20 With Regards, Amit Kapila.