Skip to content

Commit

Permalink
Call updateRelName from the ddlScript_complete_int function instead o…
Browse files Browse the repository at this point in the history
…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
ssinger committed Aug 12, 2010
1 parent 7e926b9 commit e41318c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/backend/slony1_funcs.sql
Expand Up @@ -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);
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit e41318c

Please sign in to comment.