From e2f6d8b5ca795e2556603561c64170ede26efbad Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 16 Mar 2018 11:09:13 +0800 Subject: [PATCH] FIX: Restorer was not extracting the patch version in dump file. --- lib/backup_restore/restorer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?