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

8.107. setmovetable_int(integer, integer)

Function Properties

PLPGSQLinteger
    declare
    	p_tab_id			alias for $1;
    	p_new_set_id		alias for $2;
    begin
    	-- ----
    	-- Grab the central configuration lock
    	-- ----
    	lock table sl_config_lock;
    	
    	-- ----
    	-- Move the table to the new set
    	-- ----
    	update sl_table
    			set tab_set = p_new_set_id
    			where tab_id = p_tab_id;
    
    	return p_tab_id;
    end;

Google

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

Contact me at cbbrowne@acm.org