1.37. ddlscript_complete_int( integer, integer )

Function Properties

Language: PLPGSQL

Return Type: integer

ddlScript_complete_int(set_id, script, only_on_node) Complete processing the DDL_SCRIPT event. This puts tables back into replicated mode.

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;