Glyn Astill wrote:
> FATAL: the database system is starting up
> FATAL: the database system is starting up
> FATAL: the database system is starting up
>
>
> As far as I know theres nothing else trying to connect.
I think you are using FreeBSD, and default pg_ctl flags in rc.d contains
"-w" option, which wait for start/stop to complete. It check this by
connecting to postmaster.
change postgresql_flags in /etc/rc.conf to:
postgresql_flags="-s -m fast"
or
postgresql_flags="-s -m smart"