Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3718b0c

Browse files
committed
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
1 parent abd8c94 commit 3718b0c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/test/bench/create.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# $PostgreSQL: pgsql/src/test/bench/create.sh,v 1.6 2007/08/01 22:23:01 momjian Exp $
2+
# $PostgreSQL: pgsql/src/test/bench/create.sh,v 1.7 2009/08/14 18:49:34 tgl Exp $
33
#
44
if [ ! -d $1 ]; then
55
echo " you must specify a valid data directory " >&2
@@ -10,16 +10,16 @@ if [ -d ./obj ]; then
1010
fi
1111

1212
echo =============== destroying old bench database... =================
13-
echo "drop database bench" | postgres -D"$1" postgres > /dev/null
13+
echo "drop database bench" | postgres --single -D"$1" postgres > /dev/null
1414

1515
echo =============== creating new bench database... =================
16-
echo "create database bench" | postgres -D"$1" postgres > /dev/null
16+
echo "create database bench" | postgres --single -D"$1" postgres > /dev/null
1717
if [ $? -ne 0 ]; then
1818
echo createdb failed
1919
exit 1
2020
fi
2121

22-
postgres -D${1} bench < create.sql > /dev/null
22+
postgres --single -D${1} bench < create.sql > /dev/null
2323
if [ $? -ne 0 ]; then
2424
echo initial database load failed
2525
exit 1

src/test/bench/runwisc.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# $PostgreSQL: pgsql/src/test/bench/runwisc.sh,v 1.10 2007/08/19 01:41:25 adunstan Exp $
2+
# $PostgreSQL: pgsql/src/test/bench/runwisc.sh,v 1.11 2009/08/14 18:49:34 tgl Exp $
33

44
if [ ! -d $1 ]; then
55
echo " you must specify a valid data directory " >&2
@@ -11,7 +11,7 @@ if [ -d ./obj ]; then
1111
fi
1212

1313
echo =============== vacuuming benchmark database... ================= >&2
14-
echo "vacuum" | postgres -D"$1" bench > /dev/null
14+
echo "vacuum" | postgres --single -D"$1" bench > /dev/null
1515

1616
echo =============== running benchmark... ================= >&2
17-
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
17+
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

0 commit comments

Comments
 (0)