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 1umHk0-00CzL1-1h for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Aug 2025 20:06:32 +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 1umHjy-0003wO-GO for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Aug 2025 20:06:30 +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 1umHhr-0000UP-7J for pgsql-hackers@lists.postgresql.org; Wed, 13 Aug 2025 20:04:19 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1umHhp-000b8R-03 for pgsql-hackers@lists.postgresql.org; Wed, 13 Aug 2025 20:04:19 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-afcb7aea37cso30260766b.3 for ; Wed, 13 Aug 2025 13:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755115456; x=1755720256; 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=voR7Usqkk3Kd8yEC3exp1fwC9oTZiVkNT7s+p+NVDYQ=; b=a4Kv5ShSFigImBNRlPW6WFF3/9aZZOZhDdCOQC1RHA1SozRyNgn7dBcVlpbDTW2wxZ GxubxtmvgvKdAQ2aknGXCtj00XbvvFRXeWAFL8yq6XCA4aOH4HzxAfbpxGybqxnuo9gn aHSmV4mdWtwp+Cl40SIo0DxL2zWgMQzk1/wCmGZybuESYY368l8g+/DCwxwTrDGowomP U4DE9DfGYX7pp5b5MF2OSIzn7HwP8bK3rSm1DkEaXpfeSY41Ec2wDRwMnjziTUnbWpb9 Kf1TpK+xnSU+JAA2ZT+7D4rcIZpbE6XVkzhtRc4iArnXC+wbYaEe0Skmw27iSBJfyfFa Q1cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755115456; x=1755720256; 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=voR7Usqkk3Kd8yEC3exp1fwC9oTZiVkNT7s+p+NVDYQ=; b=Rdl2l8LSScVWDpGk/aaMk2GSR14ZKltdeEnpmURYW6mFbWbXyqoZcvITF2+wjfwE3A bVr0W1AkBizRnperhFQuqfuqC6htpCwNz634V2ym6JouYcyRq28wNAbSIhkq13/nOuNu CyfyzqfBH0NNN/VshC/xNQ6t+1tZuQYr8mO0H196SxlEE+2gJM9ocwzn/Y4d3t14aE0n KlZXIefbv0IxlDz+JsNFcs+SzsHW/VmdXLS0oK+odphS7Jn0Zgc4f3Am7OGboEvou3Dh 0WdPv/wZmQJrakncKHiMfYMCi8r0fGiemlbZGTQQX1v6/YqpM4EoCWJCaWJwoP+1jOcc YwVQ== X-Forwarded-Encrypted: i=1; AJvYcCV7Yxd9i5ycEiOYGYvwRRaDiiSxyQ/4Q6WFAvJlMjPi8/dYwSQxkZU57cqi0BtLRMdbrQsIYp+HKgCHy7DU@lists.postgresql.org X-Gm-Message-State: AOJu0YxdAu2Zs1fISlkVD6AA15ipUGK5Pf7hFPH7xY2ayyAFBj07YAxf 3u+Twlg7TtcfKG8jSMoDPnt6L4dwcoJY5QTyqIq+vHplnWEnmMYoLOFQb+ljYMSyPfyODfI6Wu4 ui++P5vy0g5dkVFFbKVDEwKHMhcTvb/7ymg== X-Gm-Gg: ASbGnctSHCNOKv7S51njto+KVB046en5lctWVZLedxd48Rkn73nB2/+imOPuDaJRTgP 7Edqk2ellGBpopQe2r8mgcnQLAIa+5U+PrvAw2Sc04MtXEOQCaI84tA/uc0NKTtW+JpvTD5FXwo oQRN1/oywtTznX6mNtm/1xlzdSy3KmuBUexjBXs5NtnKbIvcOD1eRVxyI04ZG8iYha/HOruWCGQ aeDLQIE X-Google-Smtp-Source: AGHT+IG6yb8Xbb5/51v38dc5z3eXBBRtU+jur7JbpPhAmGL6sBHXpmutXHO0FGHeIrdwrA+YOBLLX1J/1teCZTkeuME= X-Received: by 2002:a17:907:d93:b0:af9:6e4a:3b31 with SMTP id a640c23a62f3a-afcb99d7c24mr40943666b.46.1755115456002; Wed, 13 Aug 2025 13:04:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Robert Haas Date: Wed, 13 Aug 2025 16:04:04 -0400 X-Gm-Features: Ac12FXxqw1EzXFLLqpOZ5ihHo-hjWhYt4mEJ8bcMfCWOMZY2ZF0DT9dEiC41K6s Message-ID: Subject: Re: ReplicationSlotRelease() crashes when the instance is in the single user mode To: "Hayato Kuroda (Fujitsu)" Cc: Paul A Jungwirth , Mutaamba Maasha , Amit Kapila , Michael Paquier , "David G. Johnston" , "Zhijie Hou (Fujitsu)" , Tom Lane , Bertrand Drouvot , "pgsql-hackers@lists.postgresql.org" 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 Wed, Aug 13, 2025 at 3:21=E2=80=AFAM Hayato Kuroda (Fujitsu) wrote: > To confirm; your point is that we should firstly fix to allow acquiring/r= eleasing > slots in the mode, then consider additional guards, is it right? Valid po= int. Yes. > I still cannot find enough use-cases to allow manipulating slots, though. The use case for single-user mode is quite limited in general, but most things work in single-user mode unless they are something that intrinsically can't. For example, parallel query cannot be used in single-user mode, because there is only one process. Replication cannot work, for the same reason. But manual slot operations can work, so I do not think it is good to arbitrarily prohibit them. We do not need a reason to specifically allow them; it is enough that there is no good reason for them to be blocked. --=20 Robert Haas EDB: http://www.enterprisedb.com