I tested on PostgreSQL 10.21 with the following patch. There were no related test failures with Pg gem.
diff --git a/Gemfile b/Gemfile
index 37fe583757..61c359a445 100644
--- a/Gemfile
+++ b/Gemfile
@@ -67,7 +67,7 @@ if File.exist?(database_file)
when 'mysql2'
gem "mysql2", "~> 0.5.0", :platforms => [:mri, :mingw, :x64_mingw]
when /postgresql/
- gem "pg", "~> 1.2.2", :platforms => [:mri, :mingw, :x64_mingw]
+ gem "pg", "~> 1.4.2", :platforms => [:mri, :mingw, :x64_mingw]
when /sqlite3/
gem "sqlite3", "~> 1.4.0", :platforms => [:mri, :mingw, :x64_mingw]
when /sqlserver/