1.36. ddlscript_complete( integer, text, integer )

Function Properties

Language: PLPGSQL

Return Type: integer

ddlScript_complete(set_id, script, only_on_node) After script has run on origin, this fixes up relnames, restores triggers, and generates a DDL_SCRIPT event to request it to be run on replicated slaves.

declare
	p_set_id			alias for $1;
	p_script			alias for $2;
	p_only_on_node		alias for $3;
	v_set_origin		int4;
begin
	perform updateRelname(p_set_id, p_only_on_node);
	return  createEvent('_schemadoc', 'DDL_SCRIPT', 
			p_set_id, p_script, p_only_on_node);
end;