Retirement tax questions

Is a military pension a qualified plan? There is the military TSP and then there is the military pension. You do not specify which you are referring to.