summaryrefslogtreecommitdiff
path: root/src/test/bench
diff options
context:
space:
mode:
authorTom Lane2009-08-14 18:49:34 +0000
committerTom Lane2009-08-14 18:49:34 +0000
commit3718b0c50dcde6cd384c051b6e610b369fe02a3d (patch)
treeb29e37c3da14a1a35925570d0b283efccddcde65 /src/test/bench
parentabd8c94ff98091a5134d905258c2835e72b2dbd8 (diff)
Repair breakage of Wisconsin benchmark due to change of command line syntax
for standalone backends. Although we probably ought to just remove this long-obsolete test case from our code, it seems worthwhile to document the issue and fix in CVS first. Jeff Janes
Diffstat (limited to 'src/test/bench')
-rwxr-xr-xsrc/test/bench/create.sh8
-rwxr-xr-xsrc/test/bench/runwisc.sh6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/test/bench/create.sh b/src/test/bench/create.sh
index 48b2e32a8e6..c358cdf965e 100755
--- a/src/test/bench/create.sh
+++ b/src/test/bench/create.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $PostgreSQL: pgsql/src/test/bench/create.sh,v 1.6 2007/08/01 22:23:01 momjian Exp $
+# $PostgreSQL: pgsql/src/test/bench/create.sh,v 1.7 2009/08/14 18:49:34 tgl Exp $
#
if [ ! -d $1 ]; then
echo " you must specify a valid data directory " >&2
@@ -10,16 +10,16 @@ if [ -d ./obj ]; then
fi
echo =============== destroying old bench database... =================
-echo "drop database bench" | postgres -D"$1" postgres > /dev/null
+echo "drop database bench" | postgres --single -D"$1" postgres > /dev/null
echo =============== creating new bench database... =================
-echo "create database bench" | postgres -D"$1" postgres > /dev/null
+echo "create database bench" | postgres --single -D"$1" postgres > /dev/null
if [ $? -ne 0 ]; then
echo createdb failed
exit 1
fi
-postgres -D${1} bench < create.sql > /dev/null
+postgres --single -D${1} bench < create.sql > /dev/null
if [ $? -ne 0 ]; then
echo initial database load failed
exit 1
diff --git a/src/test/bench/runwisc.sh b/src/test/bench/runwisc.sh
index 0012958b481..d428ba64515 100755
--- a/src/test/bench/runwisc.sh
+++ b/src/test/bench/runwisc.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $PostgreSQL: pgsql/src/test/bench/runwisc.sh,v 1.10 2007/08/19 01:41:25 adunstan Exp $
+# $PostgreSQL: pgsql/src/test/bench/runwisc.sh,v 1.11 2009/08/14 18:49:34 tgl Exp $
if [ ! -d $1 ]; then
echo " you must specify a valid data directory " >&2
@@ -11,7 +11,7 @@ if [ -d ./obj ]; then
fi
echo =============== vacuuming benchmark database... ================= >&2
-echo "vacuum" | postgres -D"$1" bench > /dev/null
+echo "vacuum" | postgres --single -D"$1" bench > /dev/null
echo =============== running benchmark... ================= >&2
-time postgres -D"$1" -texecutor -tplanner -c log_min_messages=log -c log_destination=stderr -c start_log_collector=off bench < bench.sql 2>&1
+time postgres --single -D"$1" -texecutor -tplanner -c log_min_messages=log -c log_destination=stderr -c logging_collector=off bench < bench.sql 2>&1