diff options
Diffstat (limited to 'src/test/recovery/t/041_checkpoint_at_promote.pl')
-rw-r--r-- | src/test/recovery/t/041_checkpoint_at_promote.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/recovery/t/041_checkpoint_at_promote.pl b/src/test/recovery/t/041_checkpoint_at_promote.pl index 5aa05b456ca..905662353da 100644 --- a/src/test/recovery/t/041_checkpoint_at_promote.pl +++ b/src/test/recovery/t/041_checkpoint_at_promote.pl @@ -35,6 +35,17 @@ restart_after_crash = on ]); $node_primary->start; +# Check if the extension injection_points is available, as it may be +# possible that this script is run with installcheck, where the module +# would not be installed by default. +my $result = $node_primary->safe_psql('postgres', + "SELECT count(*) > 0 FROM pg_available_extensions WHERE name = 'injection_points';" +); +if ($result eq 'f') +{ + plan skip_all => 'Extension injection_points not installed'; +} + my $backup_name = 'my_backup'; $node_primary->backup($backup_name); |