diff --git a/test_runner/regress/test_replica_promote.py b/test_runner/regress/test_replica_promote.py index 82d0e8d6e9..4e26de9f7a 100644 --- a/test_runner/regress/test_replica_promote.py +++ b/test_runner/regress/test_replica_promote.py @@ -89,12 +89,14 @@ def test_replica_promotes(neon_simple_env: NeonEnv, pg_version: PgVersion): assert new_primary_cur.fetchone() == (200,) new_primary.stop(mode="immediate") + new_primary.respec(mode="Primary") new_primary.start() with new_primary.connect() as new_primary_conn: new_primary_cur = new_primary_conn.cursor() new_primary_cur.execute("select count(*) from t") assert new_primary_cur.fetchone() == (200,) + new_primary_cur.execute("INSERT INTO t (payload) SELECT generate_series(201, 300)") new_primary.stop() old_primary.start() @@ -102,4 +104,7 @@ def test_replica_promotes(neon_simple_env: NeonEnv, pg_version: PgVersion): with old_primary.connect() as old_primary_conn: old_primary_cur = old_primary_conn.cursor() old_primary_cur.execute("select count(*) from t") - assert old_primary_cur.fetchone() == (200,) + assert old_primary_cur.fetchone() == (300,) + old_primary_cur.execute("INSERT INTO t (payload) SELECT generate_series(301, 400)") + old_primary_cur.execute("select count(*) from t") + assert old_primary_cur.fetchone() == (400,) diff --git a/vendor/postgres-v14 b/vendor/postgres-v14 index 55c0d45abe..e93ddb2de1 160000 --- a/vendor/postgres-v14 +++ b/vendor/postgres-v14 @@ -1 +1 @@ -Subproject commit 55c0d45abe6467c02084c2192bca117eda6ce1e7 +Subproject commit e93ddb2de1d0696d16759efb5fe86e0c8aa7d9e2 diff --git a/vendor/postgres-v15 b/vendor/postgres-v15 index de7640f55d..f2cd317375 160000 --- a/vendor/postgres-v15 +++ b/vendor/postgres-v15 @@ -1 +1 @@ -Subproject commit de7640f55da07512834d5cc40c4b3fb376b5f04f +Subproject commit f2cd31737536218c39c66f920ff62f72c51d0d61 diff --git a/vendor/postgres-v16 b/vendor/postgres-v16 index 0bf96bd6d7..3d6896afaa 160000 --- a/vendor/postgres-v16 +++ b/vendor/postgres-v16 @@ -1 +1 @@ -Subproject commit 0bf96bd6d70301a0b43b0b3457bb3cf8fb43c198 +Subproject commit 3d6896afaa89c05b693e9a29275001b801b8b479