PLPGSQL | text |
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; |