Revision 3254
Added by Aaron Marcuse-Kubitza over 12 years ago
mk_rm_indexes | ||
---|---|---|
6 | 6 |
|
7 | 7 |
sed () { "$(which sed)" -"$sedEreFlag" "$@";} |
8 | 8 |
|
9 |
sed -n 's/^CREATE INDEX ([^ ]+) .*$/DROP INDEX IF EXISTS \1 CASCADE;/p' |
|
9 |
sed -n -e 's/^SET search_path =/&/p' \ |
|
10 |
-e 's/^CREATE INDEX ([^ ]+) .*$/DROP INDEX IF EXISTS \1 CASCADE;/p' |
Also available in: Unified diff
mk_rm_indexes: Also include the search_path in the outputted commands