Weighted polynomial approximation on the real line