Re: ReplicationSlotRelease() crashes when the instance is in the single user mode
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Cc: "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>, Michael Paquier <michael@paquier.xyz>,
"David G. Johnston" <david.g.johnston@gmail.com>, Bertrand Drouvot <bertranddrouvot.pg@gmail.com>, "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Date: 2025-02-28T03:13:02Z
Lists: pgsql-hackers
On Thu, Feb 27, 2025 at 1:29 PM Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com> 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-INF > > O-SNAPSHOT > > I grepped sources and could not find explicit limitations neither. So...this might > be overkill. > Yes, this is my worry. > But 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? -- With Regards, Amit Kapila.
Commits
-
Fix assertion failure with replication slot release in single-user mode
- 8ed079cad824 13.23 landed
- 32d388d00f9f 14.20 landed
- 818be9b73c94 15.15 landed
- fea1cc3f75ff 16.11 landed
- 07a302387176 17.7 landed
- ea1c6b0b0aec 18.0 landed
- 1f2e51e3c7c2 19 (unreleased) landed