diff --git a/lib/rails_pg_adapter/patch.rb b/lib/rails_pg_adapter/patch.rb index 9b43c36..5ed1a0b 100644 --- a/lib/rails_pg_adapter/patch.rb +++ b/lib/rails_pg_adapter/patch.rb @@ -16,6 +16,7 @@ module Patch "is not currently accepting connections", "too many connections", "Connection refused", + "the database system is in recovery mode" ].freeze CONNECTION_ERROR_RE = /#{CONNECTION_ERROR.map { |w| Regexp.escape(w) }.join("|")}/.freeze