mitigate race condition which occurs when a client connects too early after 'pg_ctl start' has finished