diff --git a/Gemfile b/Gemfile
index 2bcfa3ac8f4e23b34dd2669eb18fb52b11e3dbd3..30849bd4008b8e75d9b9b3b69dbdc06053d10ece 100644
--- a/Gemfile
+++ b/Gemfile
@@ -37,7 +37,7 @@ gem 'rack-cors', '0.2.8', :require => 'rack/cors'
 ENV['DB'] ||= 'mysql'
 
 gem 'mysql2', '0.3.14' if ENV['DB'] == 'all' || ENV['DB'] == 'mysql'
-gem 'pg',     '0.16.0' if ENV['DB'] == 'all' || ENV['DB'] == 'postgres'
+gem 'pg',     '0.17.1' if ENV['DB'] == 'all' || ENV['DB'] == 'postgres'
 
 gem 'activerecord-import', '0.3.1'
 gem 'foreigner',           '1.6.1'