Giants add lefty reliever Lopez

SAN FRANCISCO -- The San Francisco Giants have acquired Javier Lopez from the Pittsburgh Pirates, getting the left-handed reliever they were looking for at the trade deadline.

The Giants are sending right-hander Joe Martinez and outfielder John Bowker to the Pirates. San Francisco, which has missed the playoffs the past six seasons, began the day 2 1/2 games back of the first-place San Diego Padres in the NL West.

The 33-year-old Lopez is 2-2 with a 2.79 ERA in 50 appearances and 38 2/3 innings this season.

Martinez was 0-1 with a 4.91 ERA.