Retirement tax questions

The way I thought it worked and I could be wrong is that if you live in NYS and draw a NYS retirement it was NYS income tax exempt but other retirements had a $20,000 exemption.