The effect of pensions on longevity