class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

def discard! # :nodoc:

:nodoc:
def discard! # :nodoc:
  super
  @connection.socket_io.reopen(IO::NULL) rescue nil
  @connection = nil
end