As mentioned…it depends on the job. But some government employees don’t pay into the SS system. They are subject to the offset and windfall provisions of SS. (WEP and GPO). This means they don’t collect SS or collect a reduced amount of SS, AND can not collect on a spouses SS earnings even when that spouse dies.
I believe I’ve commented on this before and linked info, but here is more. There is currently a bill in the house to repeal the WEP and GPO. I’m not posting this for discussion or debate. Just information.