Project

General

Profile

« Previous | Next » 

Revision 3254

mk_rm_indexes: Also include the search_path in the outputted commands

View differences:

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