On Friday night, the San Francisco Giants defeated the Colorado Rockies 3-2 in an 18-inning, 5-hour-and-35-minute game that didn't end until 1 a.m.

The Giants set off postgame victory fireworks anyway.

The few fans remaining at Oracle Park enjoyed the show, but a number of San Francisco residents who got woken up by the fireworks were less than thrilled.

"LOUD BANGING ANYONE?" someone wrote on the San Francisco Reddit page. "I'M TRYING TO DUCKUNGSLEEP AHAT THE F— IS THAT NOISE."

"Giants won an 18 inning marathon game, and despite lasting 2 games worth, still promised a fireworks show," someone wrote in response.

GAME RECAP: Giants outlast Rockies in marathon at Oracle, winning in the 18th

The Giants tweeted out a video of the fireworks show with the caption, "Current time: 1:11am," and a number of angry residents responded.

"Love the win after 18 innings but common sense and logic must prevail and decide NOT to shoot fireworks at 1am," a Twitter user wrote. "Really, really poor decision."

However, a number of people defended the team's decision to shoot of fireworks despite it being 1 a.m.

"Imagine living in SF willingly and complaining about noise on a Friday night," someone wrote.

RELATED: Allan Byer, who helped keep Giants in SF, passes away at 91

"Hope they do this every night! F the techies!!" wrote someone else.

The Giants announced that the 18-inning game tied a record for longest home game in franchise history, the other one was a 1-0 loss to the Diamondbacks in 2001.

Eric Ting is an SFGATE staff writer. Email him at eric.ting@sfgate.com and follow him on Twitter

Start receiving breaking news emails on floods, wildfires, civil emergencies, riots, national breaking news, Amber Alerts, weather emergencies, and other critical events with the SFGATE breaking news email. Click here to make sure you get the news.