Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 2952161

Browse files
committed
rename --db-dump-path --> --db-dump
1 parent 58ed2e2 commit 2952161

11 files changed

+16
-16
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ echo "create table hello_world as select i::int4 from generate_series(1, (10^6):
107107
# (seqscan is expected, total time ~150ms, depending on resources)
108108
nancy run \
109109
--run-on localhost \
110-
--db-dump-path file://$(pwd)/sample.dump.bz2 \
110+
--db-dump file://$(pwd)/sample.dump.bz2 \
111111
--tmp-path /tmp \
112112
--workload-custom-sql "select count(1) from hello_world where i between 100000 and 100010;"
113113

114114
# Now check how a regular btree index affects performance
115115
# (expected total time: ~0.05ms)
116116
nancy run \
117117
--run-on localhost \
118-
--db-dump-path file://$(pwd)/sample.dump.bz2 \
118+
--db-dump file://$(pwd)/sample.dump.bz2 \
119119
--tmp-path /tmp \
120120
--workload-custom-sql "select count(1) from hello_world where i between 100000 and 100010;" \
121121
--target-ddl-do "create index i_hello_world_i on hello_world(i);" \
@@ -128,7 +128,7 @@ nancy run \
128128
--run-on aws \
129129
--aws-ec2-type "i3.large" \
130130
--aws-keypair-name awskey --aws-ssh-key-path file://$(echo ~)/.ssh/awskey.pem \
131-
--db-dump-path "create table a as select i::int4 from generate_series(1, (10^9)::int) _(i);" \
131+
--db-dump "create table a as select i::int4 from generate_series(1, (10^9)::int) _(i);" \
132132
--workload-custom-sql "select count(1) from a where i between 10 and 20;"
133133
```
134134

nancy_run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ while true; do
9090
9191
Reserved / Not yet implemented.
9292
93-
\033[1m--db-dump-path\033[22m (string)
93+
\033[1m--db-dump\033[22m (string)
9494
9595
Specify the path to database dump (created by pg_dump) to be used as an input.
9696
@@ -193,7 +193,7 @@ while true; do
193193
--db-prepared-snapshot )
194194
#Still unsupported
195195
DB_PREPARED_SNAPSHOT="$2"; shift 2 ;;
196-
--db-dump-path )
196+
--db-dump )
197197
DB_DUMP_PATH="$2"; shift 2 ;;
198198
--after-db-init-code )
199199
#s3 url|filename|content
@@ -380,7 +380,7 @@ function checkParams() {
380380
exit 1
381381
fi
382382

383-
#--db-prepared-snapshot or --db-dump-path
383+
#--db-prepared-snapshot or --db-dump
384384
if ([ -z ${DB_PREPARED_SNAPSHOT+x} ] && [ -z ${DB_DUMP_PATH+x} ]); then
385385
>&2 echo "ERROR: Snapshot or dump not given."
386386
exit 1;
@@ -398,7 +398,7 @@ function checkParams() {
398398
echo "$DB_DUMP_PATH" > $TMP_PATH/db_dump_tmp.sql
399399
DB_DUMP_PATH="$TMP_PATH/db_dump_tmp.sql"
400400
else
401-
[ "$DEBUG" -eq "1" ] && echo "DEBUG: Value given as db-dump-path will use as filename"
401+
[ "$DEBUG" -eq "1" ] && echo "DEBUG: Value given as db-dump will use as filename"
402402
fi
403403
DB_DUMP_FILENAME=$(basename $DB_DUMP_PATH)
404404
DB_DUMP_EXT=${DB_DUMP_FILENAME##*.}

tests/nancy_run_localhost_real_workload.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nancyRun="$parentDir/nancy_run.sh"
1010

1111
output=$(
1212
$nancyRun --workload-real "file://$srcDir/sample.replay" \
13-
--db-dump-path "file://$srcDir/test.dump.bz2" \
13+
--db-dump "file://$srcDir/test.dump.bz2" \
1414
--tmp-path $srcDir/tmp 2>&1
1515
)
1616

tests/nancy_run_localhost_simple_dump.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nancyRun="$parentDir/nancy_run.sh"
1010

1111
output=$(
1212
$nancyRun --workload-custom-sql "file://$srcDir/custom.sql" \
13-
--db-dump-path "file://$srcDir/test.dump.bz2" \
13+
--db-dump "file://$srcDir/test.dump.bz2" \
1414
--tmp-path $srcDir/tmp 2>&1
1515
)
1616

tests/nancy_run_localhost_simple_dump_with_index.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ nancyRun="$parentDir/nancy_run.sh"
1111
output=$(
1212
$nancyRun --workload-custom-sql "file://$srcDir/custom.sql" \
1313
--tmp-path ${srcDir}/tmp \
14-
--db-dump-path "file://$srcDir/test.dump.bz2" \
14+
--db-dump "file://$srcDir/test.dump.bz2" \
1515
--target-ddl-do "create index i_speedup on t1 using btree(val);" \
1616
--target-ddl-undo "drop index i_speedup;" 2>&1
1717
)

tests/nancy_run_localhost_simple_gz_dump.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nancyRun="$parentDir/nancy_run.sh"
1010

1111
output=$(
1212
$nancyRun --workload-custom-sql "file://$srcDir/custom.sql" \
13-
--db-dump-path "file://$srcDir/test.dump.gz" \
13+
--db-dump "file://$srcDir/test.dump.gz" \
1414
--tmp-path $srcDir/tmp 2>&1
1515
)
1616

tests/nancy_run_localhost_simple_sql_dump.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nancyRun="$parentDir/nancy_run.sh"
1010

1111
output=$(
1212
$nancyRun --workload-custom-sql "file://$srcDir/custom.sql" \
13-
--db-dump-path "file://$srcDir/test.dump.sql" \
13+
--db-dump "file://$srcDir/test.dump.sql" \
1414
--tmp-path $srcDir/tmp 2>&1
1515
)
1616

tests/nancy_run_options_both_dump_snapshot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ read -r -d '' params <<PARAMS
77
--s3cfg-path "/home/someuser/.s3cfg" \
88
--workload-real "s3://somebucket/db.sql.30min.pgreplay" \
99
--tmp-path tmp \
10-
--db-dump-path "s3://somebucket/dump.sql.bz2" \
10+
--db-dump "s3://somebucket/dump.sql.bz2" \
1111
--db-prepared-snapshot "s3://somebucket/snapshot"
1212
PARAMS
1313

tests/nancy_run_options_ddl_do+_undo-.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ read -r -d '' params <<PARAMS
77
--s3cfg-path "/home/someuser/.s3cfg" \
88
--workload-real "s3://somebucket/db.sql.30min.pgreplay" \
99
--tmp-path tmp \
10-
--db-dump-path "s3://somebucket/dump.sql.bz2" \
10+
--db-dump "s3://somebucket/dump.sql.bz2" \
1111
--target-ddl-do "create\tindex\ti_zzz\ton\tsometable(col1);"
1212
PARAMS
1313

tests/nancy_run_options_ddl_do-_undo+.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ read -r -d '' params <<PARAMS
77
--s3cfg-path "/home/someuser/.s3cfg" \
88
--workload-real "s3://somebucket/db.sql.30min.pgreplay" \
99
--tmp-path tmp \
10-
--db-dump-path "s3://somebucket/dump.sql.bz2" \
10+
--db-dump "s3://somebucket/dump.sql.bz2" \
1111
--target-ddl-undo "drop\tindex\ti_zzz;"
1212
PARAMS
1313

0 commit comments

Comments
 (0)