| PLPGSQL | integer |
declare
p_set_id alias for $1;
p_only_on_node alias for $2;
v_row record;
begin
-- ----
-- Put all tables back into replicated mode
-- ----
for v_row in select * from sl_table
loop
perform alterTableForReplication(v_row.tab_id);
end loop;
return p_set_id;
end; |