The "straight man" to Rex-and, increasingly, Moser-Ernst Stockinger ("Stocki" for short) is a character who becomes much more likeable as his part in the series develops.
Eventually, Stockinger is transferred to Salzburg and leaves the series.