Content-Length: 260662 | pFad | http://github.com/postgrespro/postgres_cluster/commit/ef8fcbff56e8904ba83b2659e9d0290e6106928e

EA Fix subscription test · postgrespro/postgres_cluster@ef8fcbf · GitHub
Skip to content

Commit ef8fcbf

Browse files
committed
Fix subscription test
After altering a subscription, we should wait until the updated table sync data has been fetched by the subscriber.
1 parent d2d4c35 commit ef8fcbf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/subscription/t/008_diff_schema.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@
104104
$node_subscriber->safe_psql('postgres',
105105
"ALTER SUBSCRIPTION tap_sub REFRESH PUBLICATION");
106106

107+
$node_subscriber->poll_query_until('postgres', $synced_query)
108+
or die "Timed out while waiting for subscriber to synchronize data";
109+
107110
# Add replica identity column. (The serial is not necessary, but it's
108111
# a convenient way to get a default on the new column so that rows
109112
# from the publisher that don't have the column yet can be inserted.)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/ef8fcbff56e8904ba83b2659e9d0290e6106928e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy