Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f15b76a

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/20170830133922.tlpo3lgfejm4n2cs@alvherre.pgsql
1 parent 3950e07 commit f15b76a

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)