I added both Aolserver and Postgresql to the one StartupItem. This seems to do the job, as I am able to start PostgreSQL before Aolserver.