0% found this document useful (0 votes)
49 views2 pages

TPCH Postgres

A PostgreSQL user executed SQL scripts against a TPCH database to load and query data. The scripts executed in sequential order and the timing of each was recorded. Some scripts failed or produced errors. In total, 22 scripts were run.

Uploaded by

CSK
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views2 pages

TPCH Postgres

A PostgreSQL user executed SQL scripts against a TPCH database to load and query data. The scripts executed in sequential order and the timing of each was recorded. Some scripts failed or produced errors. In total, 22 scripts were run.

Uploaded by

CSK
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

root@localhost tpch-postgres]# su - postgres

-bash-4.1$ psql -d tpch


psql (9.6.5)
Type "help" for help.

tpch=# \dt;
List of relations
Schema | Name | Type | Owner
--------+----------+-------+----------
public | a | table | postgres
public | customer | table | postgres
public | lineitem | table | postgres
public | nation | table | postgres
public | orders | table | postgres
public | part | table | postgres
public | partsupp | table | postgres
public | region | table | postgres
public | supplier | table | postgres
(9 rows)

tpch=# \o cute.txt
tpch=# \timing
Timing is on.
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/1.sql;
Time: 18144.148 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/2.sql;
Time: 3106.909 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/3.sql;
Time: 32258.251 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/4.sql;
Time: 31149.527 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/5.sql;
Time: 31698.608 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/6.sql;
Time: 17771.685 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/7.sql;
Time: 30856.393 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/8.sql;
Time: 33306.899 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/9.sql;
Time: 27470.226 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/q0.sql;
/opt/db/ws/tpch/sql/tpch-postgres/q0.sql: No such file or directory
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/10.sql;
Time: 25537.911 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/11.sql;
Time: 2124.181 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/12.sql;
Time: 22402.506 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/13.sql;
Time: 4008.389 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/14.sql;
Time: 19942.909 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/15.sql;
Time: 619.766 ms
Time: 35675.164 ms
psql:/opt/db/ws/tpch/sql/tpch-postgres/15.sql:37: ERROR: syntax error at or near
"limit"
LINE 2: limit 1;
^
Time: 70.062 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/16.sql;
Time: 2126.417 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/17.sql;
Time: 24501.977 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/18.sql;
Time: 50669.446 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/19.sql;
Time: 17129.964 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/20.sql;
Time: 21379.674 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/21.sql;
Time: 30706.431 ms
tpch=# \i /opt/db/ws/tpch/sql/tpch-postgres/22.sql;
Time: 5097.834 ms
tpch=#

You might also like