8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50d764e commit 028ba64Copy full SHA for 028ba64
t/001_pgbench.pl
@@ -14,11 +14,25 @@
14
log_statement = 'ddl'
15
});
16
17
-# Test constants.
+# Test constants. Default values.
18
my $TRANSACTIONS = 1000;
19
my $CLIENTS = 10;
20
my $THREADS = 10;
21
22
+# Change pgbench parameters according to the environment variable.
23
+if (defined $ENV{TRANSACTIONS})
24
+{
25
+ $TRANSACTIONS = $ENV{TRANSACTIONS};
26
+}
27
+if (defined $ENV{CLIENTS})
28
29
+ $CLIENTS = $ENV{CLIENTS};
30
31
+if (defined $ENV{THREADS})
32
33
+ $THREADS = $ENV{THREADS};
34
35
+
36
# General purpose variables.
37
my $res;
38
my $fss_count;
0 commit comments