ddlscript_complete(integer, text, integer)

Slony-I 2.0.4 Documentation
Prev | Fast Backward | Chapter 1. Schema schemadoc | Fast Forward | Next

# 1.42. ddlscript_complete(integer, text, integer)

Function Properties

Language: PLPGSQL

Return Type: bigint

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);
    	if p_only_on_node = -1 then
    		return  createEvent('_schemadoc', 'DDL_SCRIPT',
    			p_set_id::text, p_script::text, p_only_on_node::text);
    	end if;
    	return NULL;
    end;

Prev | Home | Next
createevent(name, text, text, text, text, text, text, text, text, text) | Up | ddlscript_complete_int(integer, integer)