Usually state plans mandate contributions to some degree -- in my state (NY) the year after a stock market crash is always a mess for schools and localities because the state requires increased contributions to make up for investment target misses.
Even where the state isn't a good or responsible pension administrator, the pension system membership usually takes the obligation off of the city/county balance sheet. States have sovereign immunity, so at the end of the day, the pensioners will take a haircut.
Source? There is no shortage of articles online describing cities’ budget woes due to underfunded pensions needing increased contributions.
Jacksonville, Dallas, San Diego, San Bernardino, Detroit, Los Angeles, Chicago, the list goes on and on. The state government has a pension fund for state employees, cities can have one for city employees, counties can have one for county employees.
Illinois actually codifies in its state constitution the fact that the government may NOT alter pension benefits.
Here are some links about the obligations of individual cities:
https://www.truthinaccounting.org/news/detail/2020-financial...
There are many large cities with hugely underfunded pension plans.