Support BLOBs like OID in postgres

A repository cannot be moved from a postgres database back to disk as the BLOB type is not supported. Like in LPS-28789.