Looks like a Common Plecostomus to me. I've never heard of them doing this but, they are probably eating the slime coating from the goldfish. If so, it is very harmful to the goldfish. Chinese Algae Eaters do this but, as I said, I've never heard of plecos doing it.