Commit c34c727f authored by Sandro Santilli's avatar Sandro Santilli

Drop support for stdout in extensions_unpackage.sh

There wasn't much point in it, as we need a database name to
produce the script anyway.

git-svn-id: http://svn.osgeo.org/postgis/trunk@17319 b70326c6-7e19-0410-871a-916f4a2858ee
parent cfb5349f
#!/bin/sh
test -n "$1" || {
echo "Usage: $0 { <dbname> | - }"
echo "Usage: $0 <dbname>"
exit 1
}
......@@ -28,13 +28,8 @@ INNER JOIN pg_extension AS e ON (d.refobjid = e.oid)
WHERE d.refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass
AND deptype = 'e' AND e.extname = '${ext}' ORDER BY sqladd;
SELECT 'DROP EXTENSION ${ext};';
SELECT 'DROP EXTENSION IF EXISTS ${ext};';
EOF
done
) |
if test ${db} = '-'; then
cat
else
psql -XtA ${db}
fi
) | psql -XtA ${db}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment