|
|
|
@ -31,9 +31,9 @@ PostgresNode - class representing PostgreSQL server instance |
|
|
|
|
# as well as the psql exit code. Pass some extra psql |
|
|
|
|
# options. If there's an error from psql raise an exception. |
|
|
|
|
my ($stdout, $stderr, $timed_out); |
|
|
|
|
my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(60)', |
|
|
|
|
my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(600)', |
|
|
|
|
stdout => \$stdout, stderr => \$stderr, |
|
|
|
|
timeout => 30, timed_out => \$timed_out, |
|
|
|
|
timeout => 180, timed_out => \$timed_out, |
|
|
|
|
extra_params => ['--single-transaction'], |
|
|
|
|
on_error_die => 1) |
|
|
|
|
print "Sleep timed out" if $timed_out; |
|
|
|
@ -1613,9 +1613,9 @@ If given, it must be an array reference containing additional parameters to B<ps |
|
|
|
|
e.g. |
|
|
|
|
|
|
|
|
|
my ($stdout, $stderr, $timed_out); |
|
|
|
|
my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(60)', |
|
|
|
|
my $cmdret = $node->psql('postgres', 'SELECT pg_sleep(600)', |
|
|
|
|
stdout => \$stdout, stderr => \$stderr, |
|
|
|
|
timeout => 30, timed_out => \$timed_out, |
|
|
|
|
timeout => 180, timed_out => \$timed_out, |
|
|
|
|
extra_params => ['--single-transaction']) |
|
|
|
|
|
|
|
|
|
will set $cmdret to undef and $timed_out to a true value. |
|
|
|
|