You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Make the pg_rewind regression tests more robust on slow systems.
There were a couple of hard-coded sleeps in the tests: to wait for standbyto catch up with master, and to wait for promotion with "pg_ctl promote"to complete. Instead of a fixed, hard-coded sleep, poll the server with aquery once a second. This isn't ideal either, and I wish we had a bettersolution for real-world applications too, but this should fix theimmediate problem.Patch by Michael Paquier, with some editing by me.