Breastfeeding + 8 hrs of sleep at night

Ba

What do you all do when your baby sleeps 8 hrs at night now? Do you get up to pump in the middle of the night? Doesn’t that the defeat the purpose of getting 8 hrs?