Up until now, I have used a few less than perfect techniques for defending myself from dogs.
I have used pepper spray. You must dismount and confront the dog for this to be effective, and it is not always practical.
I try to outrun the dog. This works most of the time.
I lead the dog into traffic and let the cars do the work for me. A smart dog won't follow, and you must be near a busy road for this to work. This works well when being chased by dogs in a pack.
I would not feed the dog because this reinforces the behavoir that you wish to prevent.
I have been meaning to try one of those lightweight aluminum, telescoping ASP batons. I think they would be a more effective remedy than a frame pump because they are designed to be weapons.