neon
neon copied to clipboard
Fix LR tests waiting for synced data.
Even if pg_stat_subscription.latest_end_lsn is caughtup, some tables might not be synced because until sync worker finishes main apply worker continues to advance.
Context: https://neondb.slack.com/archives/C04DGM6SMTM/p1709307085456219 https://neon-github-public-dev.s3.amazonaws.com/reports/pr-6988/8112986047/index.html#suites/180444c850d4a41d41eb0a410dc16d84/1ff911895469b1af