State tax filing

Why can you deduct the pension from CA?   I'm in CA and don't know about that.   What kind of pension is it?   My husband is retired from the state.