-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbenchmark.sh
More file actions
executable file
·18 lines (14 loc) · 885 Bytes
/
Copy pathbenchmark.sh
File metadata and controls
executable file
·18 lines (14 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
psql postgres -t -c 'DROP DATABASE test'
psql postgres -t -c 'CREATE DATABASE test'
psql test -t < dbgen/dss.ddl
psql test -t -c '\timing' -c "\\copy customer FROM 'data/customer.tbl' DELIMITER as '|'"
psql test -t -c '\timing' -c "\\copy lineitem FROM 'data/lineitem.tbl' DELIMITER as '|'"
psql test -t -c '\timing' -c "\\copy nation FROM 'data/nation.tbl' DELIMITER as '|'"
psql test -t -c '\timing' -c "\\copy orders FROM 'data/orders.tbl' DELIMITER as '|'"
psql test -t -c '\timing' -c "\\copy partsupp FROM 'data/partsupp.tbl' DELIMITER as '|'"
psql test -t -c '\timing' -c "\\copy part FROM 'data/part.tbl' DELIMITER as '|'"
psql test -t -c '\timing' -c "\\copy region FROM 'data/region.tbl' DELIMITER as '|'"
psql test -t -c '\timing' -c "\\copy supplier FROM 'data/supplier.tbl' DELIMITER as '|'"
psql test -t -c 'VACUUM ANALYZE'
zsh ./run.sh 2>&1 | tee log.txt