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

8.132. upgradeschema(text)

Function Properties

PLPGSQLtext
Called during "update functions" by slonik to perform schema changes
    
    declare
            p_old   	alias for $1;
    		v_tab_row	record;
    begin
    	-- If old version is pre-2.0, then we require a special upgrade process
    	if p_old like '1.%' then
    		raise exception 'Upgrading to Slony-I 2.x requires running slony_upgrade_20';
    	end if;
    
    	return p_old;
    end;

Google
Contact me at cbbrowne@acm.org