postgresql7.1 select r.lob, i.storage_type from cr_revisions r, cr_items i where r.item_id = i.item_id and r.revision_id = :revision_id