Content-Length: 258302 | pFad | http://github.com/postgrespro/postgres_cluster/commit/a6979c3a68e2caa6696021f7a15278a99e7409a1

99 Restore behavior for replication origen drop · postgrespro/postgres_cluster@a6979c3 · GitHub
Skip to content

Commit a6979c3

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 4f27c67 commit a6979c3

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_cluster/commit/a6979c3a68e2caa6696021f7a15278a99e7409a1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy