By the way, I always thought that relish is a sauce and not a варенье (which is kinda jam)
There are different styles of relish, but one of the popular kinds is made by boiling chopped sour pickles in a sugar syrup, similar to варенье. (I hate this type of relish, but it's very common in the States.) But I guess you could describe it as a kind of густой соус.