Permalink
Browse files

Call updateRelName from the ddlScript_complete_int function instead o…

…f ddlScript_complete

because we want this function to be called on both subscribers and the origin.

This issue addresses something like renaming a table via EXECUTE SCRIPT where
sl_table will continue to have the old name on subscribers.
  • Loading branch information...
1 parent 7e926b9 commit e41318caa20c8006800ca3f518745a4b216c83ec @ssinger ssinger committed Aug 12, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/backend/slony1_funcs.sql
@@ -3677,7 +3677,6 @@ declare
p_only_on_node alias for $3;
v_set_origin int4;
begin
- perform @NAMESPACE@.updateRelname(p_set_id, p_only_on_node);
if p_only_on_node = -1 then
return @NAMESPACE@.createEvent('_@CLUSTERNAME@', 'DDL_SCRIPT',
p_set_id::text, p_script::text, p_only_on_node::text);
@@ -3712,7 +3711,7 @@ begin
-- Grab the central configuration lock
-- ----
lock table @NAMESPACE@.sl_config_lock;
-
+ perform @NAMESPACE@.updateRelname(p_set_id, p_only_on_node);
-- ----
-- Check that we either are the set origin or a current
-- subscriber of the set.

0 comments on commit e41318c

Please sign in to comment.