On Sat, Jan 26, 2013 at 4:02 AM, Pavel Stehule <pavel.steh...@gmail.com> wrote: > Hello > > We now haw to solve small puppet issue, because our puppets try to > start server too early, when old instance live still. > > Maybe some new parameter - is_done can be useful. >
What about something like: pg_isready; while [ $? -ne 2 ]; do sleep 1; pg_isready; done Perhaps with a counter to break out of the loop after some number of attempts. > Regards > > Pavel > -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers