As a mailman I can say we are trained to spray any dog that comes at us.
For one reason, we don’t know your dog like you know your dog. I’ve been bitten four times, and every single owner mentioned that their dog is the “nicest sweetest... blah blah blah.”