That's how CA employees end up with million dollar per year pensions. [0] Happily, some abuses have been reduced slightly in recent years. There's far to go yet.
While it is possible for pensions to be funded properly, it's not something state and municipal governments do and the few private companies with defined benefit pensions rarely do so either. In fact, it's literally illegal to fully fund pension benefits in the United States without paying a steep tax penalty for saving too much. The IRS and Congress know that exposing the full cost of what we're promising to pay out would shock too many people and they don't want to know. Better to defer the problem to the next Congress and let them sort it out.
The only hope is massive productivity growth. So, techies, get programming those robots and AI bots and new chemical materials and cheap new energy sources. The government has already assumed that they're all going to take off like crazy and forced us to bet the country on that assumption. We're going to need a tech explosion just to keep our heads above water.