Why does white rice constipate me?

White rice seems to make me gassy and constipated the next day but switching to white potatoes does not produce gas and makes my stomach feel better.