aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2017-09-01 16:30:02 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2017-09-01 16:30:02 +0200
commita6979c3a68e2caa6696021f7a15278a99e7409a1 (patch)
tree95b2d4e9828ad40022ac85e78f8a6c8d8601cf93 /src
parent4f27c674fd9fb5ba1f2952e2db53886bb5954e8b (diff)
downloadpostgresql-a6979c3a68e2caa6696021f7a15278a99e7409a1.tar.gz
postgresql-a6979c3a68e2caa6696021f7a15278a99e7409a1.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/logical/origin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/logical/origin.c b/src/backend/replication/logical/origin.c
index 14cb3d0bf23..edc6efb8a6a 100644
--- a/src/backend/replication/logical/origin.c
+++ b/src/backend/replication/logical/origin.c
@@ -1205,7 +1205,7 @@ pg_replication_origin_drop(PG_FUNCTION_ARGS)
roident = replorigin_by_name(name, false);
Assert(OidIsValid(roident));
- replorigin_drop(roident, false);
+ replorigin_drop(roident, true);
pfree(name);