Thanks to Pere Nubiola i Radigales and Gregor Jasny. Patch: FindPostgreSQL_665721.diff (Closes: #665721)