Scripts to run queries and data.

This commit is contained in:
Vadim B. Mikheev 1997-09-26 14:57:36 +00:00
parent dbde5caeed
commit 142d42f938
10 changed files with 16451 additions and 0 deletions

View File

@ -0,0 +1,2 @@
`echo "" | time $FrontEnd`;

View File

@ -0,0 +1,5 @@
if ( $TestDBMS =~ /^pgsql/ )
{
`echo "CREATE TABLE simple (justint int);" | time $FrontEnd`;
}

View File

@ -0,0 +1,5 @@
if ( $TestDBMS =~ /^pgsql/ )
{
`echo "CREATE INDEX simpleidx ON simple (justint);" | time $FrontEnd`;
}

View File

@ -0,0 +1,5 @@
if ( $TestDBMS =~ /^pgsql/ )
{
`echo "DROP TABLE simple;" | time $FrontEnd`;
}

View File

@ -0,0 +1,29 @@
#
# Transactions are unsupported by MySQL - so for insertion of
# 8192 rows, 1 INSERT per Xaction, we returned "Transactions unsupported"
#
if ( $TestDBMS =~ /^mysql/ && $XACTBLOCK eq '' )
{
print STDERR " No_Xact\n";
return;
}
`> .sqlf`; # clean file
#
# PgSQL specific: if all queries from inssimple.data must be executed in
# single xaction ($XACTBLOCK ne '') then add BEGIN/END arround queries
#
`echo "BEGIN;" >> .sqlf` if ( $TestDBMS =~ /^pgsql/ && $XACTBLOCK ne '' );
`cat sqls/inssimple.data >> .sqlf`;
# PgSQL (see above)
`echo "END;" >> .sqlf` if ( $TestDBMS =~ /^pgsql/ && $XACTBLOCK ne '' );
# Ok - run queries
`time $FrontEnd < .sqlf`;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,2 @@
`echo "SELECT * FROM simple ORDER BY justint;" | time $FrontEnd`;

View File

@ -0,0 +1,14 @@
`> .sqlf`;
# PgSQL specific to execute all queries in single xaction
`echo "BEGIN;" >> .sqlf` if ( $TestDBMS =~ /^pgsql/ && $XACTBLOCK ne '' );
`cat sqls/slcsimple.data >> .sqlf`;
`echo "END;" >> .sqlf` if ( $TestDBMS =~ /^pgsql/ && $XACTBLOCK ne '' );
# Run queries
`time $FrontEnd < .sqlf`;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,5 @@
if ( $TestDBMS =~ /^pgsql/ )
{
`time $FrontEnd -c 'vacuum'`;
}