File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /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 $
3
3
#
4
4
if [ ! -d $1 ]; then
5
5
echo " you must specify a valid data directory " >&2
@@ -10,16 +10,16 @@ if [ -d ./obj ]; then
10
10
fi
11
11
12
12
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
14
14
15
15
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
17
17
if [ $? -ne 0 ]; then
18
18
echo createdb failed
19
19
exit 1
20
20
fi
21
21
22
- postgres -D${1} bench < create.sql > /dev/null
22
+ postgres --single - D${1} bench < create.sql > /dev/null
23
23
if [ $? -ne 0 ]; then
24
24
echo initial database load failed
25
25
exit 1
Original file line number Diff line number Diff line change 1
1
#! /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 $
3
3
4
4
if [ ! -d $1 ]; then
5
5
echo " you must specify a valid data directory " >&2
@@ -11,7 +11,7 @@ if [ -d ./obj ]; then
11
11
fi
12
12
13
13
echo =============== vacuuming benchmark database... ================= >&2
14
- echo " vacuum" | postgres -D" $1 " bench > /dev/null
14
+ echo " vacuum" | postgres --single - D" $1 " bench > /dev/null
15
15
16
16
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
You can’t perform that action at this time.
0 commit comments