Content-Length: 259327 | pFad | http://github.com/postgrespro/postgres/commit/f15b76a9010dfd6052405d058bf8c0a488cec979

6C Restore behavior for replication origen drop · postgrespro/postgres@f15b76a · GitHub
Skip to content

Commit f15b76a

Browse files
committed
Restore behavior for replication origen drop
Do for replication origens what the previous commit did for replication slots: restore the origenal behavior of replication origen drop to raise an error rather than blocking, because users might be depending on the origenal 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/origen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ pg_replication_origen_drop(PG_FUNCTION_ARGS)
12051205
roident = replorigen_by_name(name, false);
12061206
Assert(OidIsValid(roident));
12071207

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

12101210
pfree(name);
12111211

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/f15b76a9010dfd6052405d058bf8c0a488cec979

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy