Christopher B. Browne's Home Page
cbbrowne@acm.org

8.41. ddlscript_complete(integer, text, integer)

Function Properties

PLPGSQLbigint
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;

Google

If this was useful, let others know by an Affero rating

Contact me at cbbrowne@acm.org