clonenodeprepare(integer, integer, text)

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

# 1.30. clonenodeprepare(integer, integer, text)

Function Properties

Language: PLPGSQL

Return Type: bigint

Prepare for cloning a node.

    declare
    	p_no_id			alias for $1;
    	p_no_provider	alias for $2;
    	p_no_comment	alias for $3;
    begin
    	-- ----
    	-- Grab the central configuration lock
    	-- ----
    	lock table sl_config_lock;

    	perform cloneNodePrepare_int (p_no_id, p_no_provider, p_no_comment);
    	return  createEvent('_schemadoc', 'CLONE_NODE',
    									p_no_id::text, p_no_provider::text,
    									p_no_comment::text);
    end;

Prev | Home | Next
clonenodefinish(integer, integer) | Up | clonenodeprepare_int(integer, integer, text)