That fixes below error as much as possible. https://github.com/ged/ruby-pg/pull/39 Related: rhbz#1688758