San Francisco Mayor Mark Farrell is dropping his support for the police union’s Taser ballot measure, saying it’s no longer needed.

“I have always said that I would support a (Taser) policy that works best for the community and for our officers, and the plan approved by the Police Commission does exactly that,” Farrell said.

With the commission’s vote this month approving rules for police use of the stun guns, the Police Officers Association’s Proposition H “is unnecessary,” Farrell said.

The association collected 19,253 voters’ signatures to qualify its measure for the June ballot. Union leaders had said they’d pull back if the Police Commission approved a policy to their liking, but that’s not what happened.

“We’ve gone over the language of the new order, and we still have significant concerns,” said Martin Halloran, president of the association.

For example, he said, the union’s measure would allow an officer to use a stun gun on someone who is “actively resisting.” The Police Commission policy makes it “violently resisting.”

“We think the voters should have a say on this,” Halloran said.

Farrell’s decision to back the commission — and Police Chief Bill Scott — amounts to a major departure for one of the police union’s biggest supporters in City Hall.

The chief has blasted the union measure as “the antithesis of the spirit” of reforms recommended by the U.S Justice Department in 2016 after several police killings. One of Scott’s main concerns is that if Prop. H is adopted, it can be amended only at the ballot box or by a four-fifths vote of the Board of Supervisors.

Good for Gav: The rise of Republican John Cox to the No. 2 slot in recent polling for the gubernatorial race is sweet news for Democratic front-runner Lt. Gov. Gavin Newsom.

Newsom would much rather have an old-fashioned Republican vs. Democrat general election matchup than go against a fellow Democrat in November, be it former Los Angeles Mayor Antonio Villaraigosa, state Treasurer John Chiang or former state schools chief Delaine Eastin.

Cox, a wealthy businessman, has pumped $3 million of his own money into the race for a radio and social media blitz aimed directly at Republicans. It was something Cox’s lone Republican rival, Assemblyman Travis Allen, could only dream of doing.

The result was a 14 percent showing for Cox in the latest Public Policy Institute of California poll, double his previous total. That was good enough to push him into second place past Villaraigosa, who fell 10 points to 12 percent. Newsom is still way out in front, at 28 percent.

“If we pick up another five points, it’s going to be hard to keep us out of the runoff,” said Cox campaign manager Wayne Johnson.

That’s because all the Democratic candidates — who also include Amanda Renteria, a Hillary Clinton aide in her ill-fated 2016 campaign — are likely to chop up the liberal vote so finely that none will hit 20 percent in the June primary.

Dirty business: When it comes to suing big oil for damages caused by global warming, San Francisco City Attorney Dennis Herrera’s position is clear: “It’s time for the defendants to pay for the profits that they have made on the backs of the public.”

But when asked about the city’s pension fund having $560 million invested in 200 oil and coal companies, Herrera took a step back.

“That is something for the pension fund to decide,” Herrera said when asked about the irony of suing the very companies that are helping to pay benefits for 70,000 current and retired city workers.

The pension fund has already dumped its interest in nine coal companies. But despite pressure from environmentalists, the Board of Supervisors, the late Mayor Ed Lee and even some of its own members, the pension board has been slow to sell the bulk of its fossil fuel holdings.

“Before you just dump an investment, you need to show that you found another investment that has the same risk and same or better rate of return,” said Jay Huish, executive director of the San Francisco Employees’ Retirement System.

But with the pressure on, the retirement system board has decided to draw up a plan to sell “the dirtiest and riskiest” of its investments. First order of business: It’s brought in an outside consultant to define “dirtiest” and “riskiest.”

The board hopes to have a hit list by October. But that won’t be the end of it.

“We have lawyers advising us that our main responsibility is to get the best return,” said retirement system board President Wendy Paskin-Jordan. “Because if you start losing money, the city has to make up the difference.”

And that could cost taxpayers millions.