summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Berg2016-06-03 14:53:16 +0000
committerChristoph Berg2016-06-03 14:53:16 +0000
commit90de7df4ecd99152f5c7ebd63d0bf81ddb2f43db (patch)
treea6139ec1d120812b8d98bd04efcee442cc5dae41
parenta3ea5253a6e657e8500d758b95e9cc181509a8fd (diff)
Skip replication slot tests before 9.4
(Refers to #109)
-rw-r--r--t/02_replication_slots.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/02_replication_slots.t b/t/02_replication_slots.t
index 1158a127f..163d836c0 100644
--- a/t/02_replication_slots.t
+++ b/t/02_replication_slots.t
@@ -25,6 +25,14 @@ diag "Connected as $port:$host:$dbname\n";
my $S = q{Action 'replication_slots'};
my $label = 'POSTGRES_REPLICATION_SLOTS';
+my $ver = $dbh->{pg_server_version};
+if ($ver < 90400) {
+ SKIP: {
+ skip 'replication slots not present before 9.4', 20;
+ }
+ exit 0;
+}
+
$t = qq{$S self-identifies correctly};
$result = $cp->run(q{-w 0});
like ($result, qr{^$label}, $t);