SAN FRANCISCO (AP) Joe Panik figured all the pressure was on Joe Smith, a relaxing ideat in a tight situation. His only thought was putting a good swing on the ball.
Panik singled in the winning run with two outs in the bottom of the ninth, lifting the San Francisco Giants past the Los Angeles Angels 3-2 on Friday night.
''With the bases loaded he has to put the ball over the plate,'' Panik said. ''I knew I had a chance if I put a good swing on it. You have to enjoy a game like that.''
Angel Pagan had two hits and drove in a run for the Giants, who have won seven of 11 since ending an eight-game losing streak.
David Freese hit a sacrifice fly, scoring Erick Aybar with the tying run in the top of the eighth. Aybar reached on a Matt Duffy fielding error.
Buster Posey beat out an infield single to open the ninth, Justin Maxwell sacrificed pinch runner Gregor Blanco to second and walks to Andrew Susac, who singled to give the Giants a 2-1 lead in the seventh, and Brandon Crawford loaded the bases for Panik, who singled sharply up the middle against Smith (0-1).
''He has ice in his veins,'' Susac said of Panik. ''Joe and I grew up in the minors together. He's always had that even keel.''
The game was briefly paused in the ninth when home plate umpire Bill Miller was hit on the knee with an errant pitch. He stayed in the game.
''It sounded like wood when it hit,'' Susac said. ''Smith is a tough at-bat. I can't imagine catching him.''
Santiago Casilla (2-0) recorded the final five outs for the win.
''We made a couple of mistakes but we overcame them,'' Giants manager Bruce Bochy said. ''That's a good way to start the homestand.''
Giants' starter Chris Heston retired 16 of 17 batters he faced over one stretch and took a two-hit shutout into the seventh before faltering. He gave up a run on five hits in his 6 1-3 innings, walking one and struck out five.
Matt Joyce's game-tying single chased Heston and left runners on first and third with one out for Jean Machi, who got the final two outs.
Nora Aoki doubled leading off the first and eventually scored on Pagan's sacrifice fly that gave the Giants the early lead.
C.J. Wilson lasted seven innings, giving up two runs - one earned - on four hits. He walked one and struck out five.
''We didn't do a couple things we'll need to do to win games,'' Angels manager Mike Scoiscia said. ''They put the ball in play when they had to, and in-between C.J. pitched just a great game. He got through seven and we couldn't take advantage of it.''
Angels: IF Albert Pujols (sore hamstring) did some running and was scheduled to go through a baseball workout, including batting practice. ''We'll see how he does and how things line up for tomorrow,'' Angels manager Mike Scioscia said. The Angels recalled IF Efren Navarro from Triple-A Salt Lake as added depth at first base. IF Grant Green was sent down to make room.
Giants: OF Hunter Pence took batting practice for the first time since suffering a broken bone in his left hand during spring training. There's still no timetable for him to start a rehab assignment. RHP Jake Peavy (back strain) has been playing catch on flat ground and will throw a bullpen on Saturday.
Angels: LHP Hector Santiago (2-1, 2.28) makes his first career against the Giants on Saturday. He's 1-1 with a 2.87 ERA in 13 interleague appearances, including six starts.
Giants: RHP Tim Hudson (0-2, 3.91) will be making his 26th start against the Los Angeles Angels on Saturday, but his first since 2011 when he was with the Atlanta Braves. He's 13-7 against the Angels with a 3.85 ERA.