diff --git a/lib/backup_restore/restorer.rb b/lib/backup_restore/restorer.rb index b2723b53ee4..3eed12b157f 100644 --- a/lib/backup_restore/restorer.rb +++ b/lib/backup_restore/restorer.rb @@ -260,7 +260,7 @@ module BackupRestore failure_message: "Failed to check version of pg_dump used to generate the dump file" ) - output.match(/version (\d+(\.\d+)?)/)[1] + output.match(/version (\d+(\.\d+)+)/)[1] end def can_restore_into_different_schema?