Be careful with which PVC product you buy. It comes in two grades. The thinner PVC is very brittle and breaks easily. When it does, it can break into razor sharp edges. I saw a horse cut terribly bad when it stepped on a pole, shattering it.
The heavier grade is what you want. However, it is quite expensive.
Also be aware that PVC pipes have no UVB protection, since they are not meant to be exposed to sunlight. It will get more brittle, the longer it is exposed. Unless you cover it when not being used, be prepared to replace it yearly.