1. Apply patch: $ cd postgresql-7.0.3 $ patch -p1