Most of the ~250 extra solar planets presently known are hosted by main sequence stars similar to our Sun. When their core hydrogen runs out, main sequence stars undergo a red giant expansion that modifies the planetary orbits and can easily reach and engulf the inner planets. The fate of the inner planets during and after the red giant phase is largely unkown. In this talk we describe the detection of the first planetary-mass companion to a post-red giant star, orbiting the extreme horizontal branch pulsating star V 391 Pegasi at a distance of about 1.7 AU, with a period of 3.2 yr.