~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/test/performance/sqls/inssimple

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#
 
3
# Transactions are unsupported by MySQL - so for insertion of
 
4
# 8192 rows, 1 INSERT per Xaction, we returned "Transactions unsupported"
 
5
#
 
6
if ( $TestDBMS =~ /^mysql/ && $XACTBLOCK eq '' )
 
7
{
 
8
        print STDERR " No_Xact\n";
 
9
        return;
 
10
}
 
11
 
 
12
`> .sqlf`;      # clean file
 
13
 
 
14
#
 
15
# PgSQL specific: if all queries from inssimple.data must be executed in
 
16
# single xaction ($XACTBLOCK ne '') then add BEGIN/END arround queries
 
17
#
 
18
`echo "BEGIN;" >> .sqlf` if ( $TestDBMS =~ /^pgsql/ && $XACTBLOCK ne '' );
 
19
 
 
20
 
 
21
`cat sqls/inssimple.data >> .sqlf`;
 
22
 
 
23
 
 
24
# PgSQL (see above)
 
25
`echo "END;" >> .sqlf` if ( $TestDBMS =~ /^pgsql/ && $XACTBLOCK ne '' );
 
26
 
 
27
# Ok - run queries
 
28
`time $FrontEnd < .sqlf`;
 
29