Test: PARALLEL compatibility (OSX)

This commit is contained in:
Raul Marin 2017-11-14 16:01:57 +01:00 committed by Raúl Marín
parent 172b3ece71
commit 6aaa5f99e2

View File

@ -95,8 +95,10 @@ if test x"$PREPARE_PGSQL" = xyes; then
do
# Strip PARALLEL labels for PostgreSQL releases before 9.6
if [ $PG_PARALLEL -eq 0 ]; then
TMPFILE=$(mktemp /tmp/$(basename $0).XXXXXXXX)
sed -e 's/PARALLEL \= [A-Z]*,/''/g' \
-e 's/PARALLEL [A-Z]*/''/g' -i sql/$i.sql
-e 's/PARALLEL [A-Z]*/''/g' sql/$i.sql > $TMPFILE
mv $TMPFILE sql/$i.sql
fi
cat sql/${i}.sql |
sed -e 's/cartodb\./public./g' -e "s/''cartodb''/''public''/g" |