I have heard that pumpkin can be good - but I've heard it's good for diarrhea and then I've heard it's also good for constipation. So, might be worth a try.
You might also want to check again with your vet and see what they say.
Can I ask you why you call your dog 'it'? |