File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -167,17 +167,17 @@ createdb "regression$dbname3" || createdb_status=$?
167167if " $MAKE " -C " $oldsrc " installcheck-parallel; then
168168 oldpgversion=` psql -X -A -t -d regression -c " SHOW server_version_num" `
169169
170- # before dumping, get rid of objects not existing in later versions
170+ # before dumping, get rid of objects not feasible in later versions
171171 if [ " $newsrc " != " $oldsrc " ]; then
172172 fix_sql=" "
173173 case $oldpgversion in
174174 804?? )
175- fix_sql=" DROP FUNCTION public.myfunc(integer); DROP FUNCTION public.oldstyle_length(integer, text);"
176- ;;
177- * )
178- fix_sql=" DROP FUNCTION public.oldstyle_length(integer, text);"
175+ fix_sql=" DROP FUNCTION public.myfunc(integer);"
179176 ;;
180177 esac
178+ fix_sql=" $fix_sql
179+ DROP FUNCTION IF EXISTS
180+ public.oldstyle_length(integer, text); -- last in 9.6" ;
181181 psql -X -d regression -c " $fix_sql ;" || psql_fix_sql_status=$?
182182 fi
183183
You can’t perform that action at this time.
0 commit comments