projects
/
pgsql-fix-value-too-long
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
helper script to run dump and extract errors
[pgsql-fix-value-too-long]
/
import-pgsql-dump.sh
1
#!/bin/sh -xe
2
3
touch errors
4
(
5
psql -l | grep ibatisti | awk '{ print $1 }' | xargs -i dropdb {}
6
./pgsql-fix-value-too-long.pl errors $1 | \
7
( psql --echo-queries template1 2>&1 )
8
2>&1 ) | tee log
9
grep -A 1 'value too long' log | tee -a errors