By the way, with the -O2 up above its the letter O, not the number 0. If you are already using a version of OpenSSL earlier than 0.9.6a you'll need to update the PostgreSQL source code to work with it. It's straightforward and the steps are available here . PostgreSQL 7.1.2, AND are already using GNU readline 4.2, AND therefore didn't need the above instructions for installing GNU readline 4.1, you will need to update the PostgreSQL 7.1 source code to work with it. It's straightforward and the steps are available here .
Additional submissions are welcome.
The more detail the better. Whilst this information is accurate to the best of my knowledge, some things may work differently for you and neither I nor any member of the PostgreSQL community can be held responsible for any losses or damage which may occur.