Corrected Postgresql compilation error