my stupid solution when running both server progs on one machine is to let aolserver wait for 10 seconds in the startup file :) i do all the auto startup things with daemontools.
i think it should not be too difficult to modify the startup file so that it checks pg-connectivity every 5 secs and let aolserver start when a pg-connection is available.