Retirement tax questions

I'm not 100% sure, but I believe that, if you've been handling the RRSP correctly all along, you've been paying state tax on earnings in the RRSP. CA is one of the only states that makes you pay as you earn. Therefore, it makes sense that you don't have to pay state taxes on the distribution since you've been paying all along (or at least I hope you have been).