# File lib/dbd/pg/database.rb, line 489
489:     def __blob_write(oid, value)
490:         start_transaction unless @in_transaction
491:         blob = @connection.lo_open(oid.to_i, PGconn::INV_WRITE)
492:         res = @connection.lo_write(blob, value)
493:         # FIXME not sure why PG doesn't like to close here -- seems to be
494:         # working but we should make sure it's not eating file descriptors
495:         # up before release.
496:         # @connection.lo_close(blob)
497:         return res
498:     rescue PGError => err
499:         raise DBI::DatabaseError.new(err.message)
500:     end