# File lib/dbd/pg/database.rb, line 470
470:     def __blob_read(oid, length)
471:         blob = @connection.lo_open(oid.to_i, PGconn::INV_READ)
472: 
473:         if length.nil?
474:             data = @connection.lo_read(blob)
475:         else
476:             data = @connection.lo_read(blob, length)
477:         end
478: 
479:         # FIXME it doesn't like to close here either.
480:         # @connection.lo_close(blob)
481:         data
482:     rescue PGError => err
483:         raise DBI::DatabaseError.new(err.message) 
484:     end