mirror of https://github.com/postgres/postgres
a -D<datadir> optionpull/50/head
parent
a0d63ac98c
commit
cfe0d67dc1
@ -1,17 +1,22 @@ |
|||||||
#!/bin/sh |
#!/bin/sh |
||||||
# $Header: /cvsroot/pgsql/src/test/bench/Attic/runwisc.sh,v 1.1.1.1 1996/07/09 06:22:23 scrappy Exp $ |
# $Header: /cvsroot/pgsql/src/test/bench/Attic/runwisc.sh,v 1.2 1997/04/17 13:48:52 scrappy Exp $ |
||||||
# |
# |
||||||
# Note that in our published benchmark numbers, we executed the command in the |
# Note that in our published benchmark numbers, we executed the command in the |
||||||
# following fashion: |
# following fashion: |
||||||
# |
# |
||||||
# time $POSTGRES -texecutor -tplanner -f hashjoin -Q bench |
# time $POSTGRES -texecutor -tplanner -f hashjoin -Q bench |
||||||
# |
# |
||||||
|
if [ ! -d $1 ]; then |
||||||
|
echo " you must specify a valid data directory " |
||||||
|
exit |
||||||
|
fi |
||||||
|
|
||||||
if [ -d ./obj ]; then |
if [ -d ./obj ]; then |
||||||
cd ./obj |
cd ./obj |
||||||
fi |
fi |
||||||
|
|
||||||
echo =============== vacuuming benchmark database... ================= |
echo =============== vacuuming benchmark database... ================= |
||||||
echo "vacuum" | postgres -Q bench > /dev/null |
echo "vacuum" | postgres -D${1} -Q bench > /dev/null |
||||||
|
|
||||||
echo =============== running benchmark... ================= |
echo =============== running benchmark... ================= |
||||||
time postgres -texecutor -tplanner -Q bench < bench.sql |
time postgres -D${1} -texecutor -tplanner -Q bench < bench.sql |
||||||
|
Loading…
Reference in new issue