PITTSBURGH - The Dodgers locked up their fourth playoff appearance in six years , getting a two-run single from pinch-hitter Jim Thome during a four-run eighth inning in which Pirates relievers walked four before going on to beat Pittsburgh 8-4 on Saturday night .