2013/1/26 Phil Sorber <[email protected]>: > On Sat, Jan 26, 2013 at 4:02 AM, Pavel Stehule <[email protected]> > 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
it is not enough - server is done in a moment, where can be started again - or when we can do safe copy of database data directory. Regards Pavel > > Perhaps with a counter to break out of the loop after some number of attempts. > >> Regards >> >> Pavel >> -- Sent via pgsql-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
