PHOENIX -- A.J. Pollock singled off pitcher Ryan Mattheus' right leg to drive in the go-ahead run in the eighth inning, and Paul Goldschmidt got his National League-leading 125th RBI in the Arizona Diamondbacks' 3-2 victory over Washington in Nationals manager Davey Johnson's final game Sunday.
Adam Eaton singled with one out in the eighth inning off Mattheus (0-2) and took third as Goldschmidt extended his career-long hitting streak to 19 with a single to right field.
Martin Prado singled in the tying run with one out before Pollock's infield single pushed the D-backs to their major league-best 34th one-run victory of the season.
The D-played a major-league-record 1,538 innings this season, breaking the mark set by the 1964 New York Yankees, who played 1,537 innings in 164 games because of two suspended games.
Steve Lombardozzi had two singles and an RBI for the Nationals (86-76), who entered the season as favorites to win the NL East. They won two of their last three and are 32-16 since Aug. 8, the best record in the majors leagues in that span.
Johnson, who took over the Nationals in mid-June 2011 and led them to the NL East title in 2012, ended his 17-year managerial career with a record of 1,372-1,071.
The Diamondbacks, who led the NL West on July 22, finished 81-81 for the second straight season while breaking a four-game losing streak.
David Hernandez (5-6) pitched a 1-2-3 eighth inning for the victory, and Brad Ziegler struck out two of the three batters he faced for his 13th save.
Washington rookie right-hander Tanner Roark gave up only an unearned run and three singles in seven innings.
Willie Bloomquist singled to open the first inning and took third when Roark threw Eaton's sacrifice bunt down the first-base line for a two-base error. Goldschmidt followed with his sacrifice fly to center field for a 1-0 lead.
Goldschmidt also tied for the NL lead with 36 home runs, same as Pittsburgh's Pedro Alvarez.
The Nationals, who had runners on base in each of the first five innings off Wade Miley, scored with some Arizona help in the sixth inning.
Tyler Moore reached on a two-base throwing error by third baseman Martin Prado to open the inning and scored when Zach Walters tripled into the right-field corner on a ball that glanced off the tip of right fielder Gerardo Parra's glove. The play originally was ruled an error on Parra.
Lombardozzi followed with a single to drive in Walters for a 2-1 lead.
NOTES: Johnson gave every regular starter the final day off except infielder Anthony Rendon, and Rendon played a different position, starting at third base instead of his normal second base. ... Johnson, 70, is a two-time manager of the year, with Baltimore (1997) and Washington (2012). He won World Series as a player with Baltimore (1966, 1970) and as a manager with the New York Mets (1986). Washington general manager Mike Rizzo said he would like Johnson to serve as a consultant during spring training. Johnson said he plans a trip to Bora Bora in April or May, "when the fishing is good." ... D-backs manager Kirk Gibson gave catcher Miguel Montero the final day off but played his other regulars. ... The D-backs' season attendance was 2,134,729.