I believe that is the case with SFPD.
I’ll have to check with someone I know there, but I think the pension is matched funds. It’s not entirely a gimme. Something like 7.5% contribution from the cop and 5% from the city. The person I know said they could retire with 30 years at 90% of whatever the highest base salary (overtime is not counted) earned.
I used the CHP and Corrections. The local ones I’m familiar with in socal, require 50 year minimum. Most now have 3% at 50. When I retired it was 2.0 at 50 and 2.5 at 55.