Re: ReplicationSlotRelease() crashes when the instance is in the single user mode
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Cc: 'Paul A Jungwirth' <pj@illuminatedcomputing.com>, Mutaamba Maasha <maasha@gmail.com>, Amit Kapila <amit.kapila16@gmail.com>, "David G. Johnston" <david.g.johnston@gmail.com>, "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>, Tom Lane <tgl@sss.pgh.pa.us>, Bertrand Drouvot <bertranddrouvot.pg@gmail.com>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2025-08-20T08:02:26Z
Lists: pgsql-hackers
On Wed, Aug 20, 2025 at 07:42:11AM +0000, Hayato Kuroda (Fujitsu) wrote: > Let me clarify your point. For now, there are no decisions to prohibit origin > manipulations. 0002 only restricts to handle slots in the single-user mode. Did > you say that we do not have to do tests to ensure these SQL functions are > prohibited in the mode? I am saying that there is little point in having tests for the origin functions in single-user mode as these don't do anything really fancy with global states (there's a acquired_by of course, and no specific IsUnderPostmaster patch), contrary to the replication slots. I am not convinced that there is any need to restrict them, either. If somebody shows a reason to justify such a move, we could argue about it, of course. -- Michael
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