Best guardian angel you can have. Dogs are often amazingly tolerant of children's antics such as tail-pulling. Still, to be on the safe side, never leave a dog alone with a child younger than 5. It's for the dog's protection as much as the kid's.
This image was circulating Facebook a few weeks ago. I don't know the background to the photo, but what an amazing picture.