I was thinking of that crusty old inspector on the Barny Miller show who told Polock jokes around Polish Sgt. Wojo, but followed them up by explaining how he had great respect for the "Polockish" people.
Inspector Frank D. Luger, played memorably by James Gregory.
Next to "The Simpsons," "Barney Miller" is the funniest TV show I have ever seen.