This is a really old post, but since it's been revived I guess I will chime in.
I have seen my share of stunted goldfish in 10 gallon tanks. Perhaps they did live to 10 years or perhaps slightly more, which seems like a pretty good run, but remember these fish can potentially live 30 years or more. I doubt they lived their lives without experiencing ich, finrot, fungus, or other issues. Finally they got one last illness, a more serious one - maybe popeye, dropsy, furunculosis, etc - and it finally did them in. These are environmental diseases. The fish get sick from being in dirty water, because even a small stunted goldfish will still foul a 10 gallon tank, making it acidic with nitrates unacceptably high. If the person is keeping the tank well, changing water every week, the goldfish will actually outgrow the tank, because it is not the size of the tank that stunts the fish, it is the waste products produced (many of them unmeasurable, such as metabolites) that keep them stunted. They have done studies where they keep fry (I believe rainbow trout) in 5 gallon containers and have fresh water continuously flowing and they actually grow so big they cannot turn around in there any longer. I am sorry, but I can't remember the details to site the source.
Most diseases of goldfish are environmental in nature, and can be avoided with the right sized tank and diet. These are things you have to focus on with goldfish, much more so than most other common fish. Plenty of fish are great for small tanks, goldfish are just not one of them.
Much of the literature says you can keep a goldfish in 20 gallons but this is very much their minimum requirements, just like an oscar in a 55 gallon is the minimum. Everybody who has seen a goldfish and an oscar thriving knows they need a bigger tank than this, but the minimum requirements are unlikely to change. Same with a "breeding pair of angels in a 20 gallon high" - rubbish! Ok, this is fine for the breeding tank, but as a permanent home? It is not adequate.