Skip to content

Commit a6979c3

Browse files
committed
Restore behavior for replication origin drop
Do for replication origins what the previous commit did for replication slots: restore the original behavior of replication origin drop to raise an error rather than blocking, because users might be depending on the original behavior. Maintain the blocking behavior when invoked internally from logical replication subscription handling. Discussion: https://postgr.es/m/[email protected]
1 parent 4f27c67 commit a6979c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/logical/origin.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ pg_replication_origin_drop(PG_FUNCTION_ARGS)
12051205
roident = replorigin_by_name(name, false);
12061206
Assert(OidIsValid(roident));
12071207

1208-
replorigin_drop(roident, false);
1208+
replorigin_drop(roident, true);
12091209

12101210
pfree(name);
12111211

0 commit comments

Comments
 (0)