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
The TAP tests for logical replication in src/test/subscription are usingthe following code in many places to make sure that the subscription issynchronized with the publisher: $node_publisher->wait_for_catchup('tap_sub'); $node_subscriber->poll_query_until('postgres', qq[SELECT count(1) = 0 FROM pg_subscription_rel WHERE srsubstate NOT IN ('r', 's')]);The new function wait_for_subscription_sync() can be used to replace theabove code. This eliminates duplicated code and makes it easier to writefuture tests.Author: Masahiko SawadaReviewed by: Amit Kapila, Shi yuDiscussion:https://postgr.es/m/CAD21AoC-fvAkaKHa4t1urupwL8xbAcWRePeETvshvy80f6WV1A@mail.gmail.com