From my experience, the time that it takes before it is ready is less than
a second, so I think you can safely assume the system is ready directly
after the script tells the postmaster is ready... (otherwise the script
would be lying to you...)
At 16:57 12-4-2003 -0500, Matt Mello wrote:
>I have a startup script that first starts up postmaster, then starts up my
>application server. I haven't run into any problems yet, but just to be
>sure, I thought I'd ask:
>
>Once your script comes back from running postmaster, is pg completely ready
>to receive connections (IP), or is there some unknown amount of time that
>will pass before it will be ready? The postmater docs didn't seem to
>indicate that once you run it, it is absolutely ready for connections.
>
>Thanks!
>
>--
>Matt Mello
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org