First of all you might consider using the latest versions of AOLserver (4.0.10),PostgreSQL (7.4.7) and TCL.
Then you have to make sure that you combiled the nspostgres driver as described in the documentation of compiling AOLserver and have the nspostgres.so installed (make install).