Look at enough PVC that is in the Sun and not painted and you will see that the area with the most exposure is brown. That is burn from the constant UV exposure, and not just on a roof.Thanks Dirk! I appreciate the step wise instructions - some is review.
I've worked a lot repairing 3/4 inch irrigation PVC and have screwed up many repairs while in a dirt hole with not enough wiggle room to move pipes to join the materials (while I have the glue on the pipes waiting to join).
I think the spray painted pipe has enough play. BTW -- Other than appearance, does spraying the PVC really protect the material? Maybe it keeps the pipe hotter don't know.
I have found that using the least expensive, flat, black, Home Depot paint lasts as long or longer than any of the others. Used to be $.97, now $2.48 called HDX. Unless there is grease on the pipe, it will stick to most everything, never had to sand or clean other than dust (usually not even then). Will last several years.
Needs to be the flat, not gloss. Gloss will require cleaning, sanding, etc. but won't last any longer and doesn't look as good as flat. Flat hides a lot of imperfections in the plumbing, like glue drips, etc.