update signals_phones_map dst set fid = src.fid, searched_at = now() FROM json_to_recordset(#{json}::json) AS src( id bigint, fid int ) where dst.id = src.id;