Buster Posey hit a game-ending single with two outs in the ninth inning to send the San Francisco Giants to a 2-1 victory over the Los Angeles Dodgers