Economists usually think it is a good to try to make spending countercyclical. This means that we want more spending when the economy is weak and less when the economy is strong.
Traditional defined benefit pensions in the United States at least partly fit this bill. They do sustain benefit levels in a downturn. In addition, their funding formulas average the impact of market swings so that they don’t have to have large increases in contributions if the economy goes into a downturn and their funds take a hit.