@@ -243,6 +243,10 @@ sub wait_for_log_match_from
243243$primary0 -> append_conf(' postgresql.conf' , " cluster.node_id = 0\n " );
244244$primary1 -> append_conf(' postgresql.conf' , $primary_common_conf );
245245$primary1 -> append_conf(' postgresql.conf' , " cluster.node_id = 1\n " );
246+ # spec-7.3: pin the pool BEFORE the primaries start (the block further down
247+ # runs after ->start and cannot help them) -- one data port per node here.
248+ $primary0 -> append_conf(' postgresql.conf' , " cluster.lms_workers = 1\n " );
249+ $primary1 -> append_conf(' postgresql.conf' , " cluster.lms_workers = 1\n " );
246250write_pair_conf($primary0 , $primary1 , ' adg2_primary' );
247251$primary0 -> start;
248252$primary1 -> start;
@@ -296,8 +300,6 @@ sub wait_for_log_match_from
296300# cross-wires consecutive free ports (HELLO DATA worker mismatch). Pin the
297301# pool to one worker: N=1 is the spec-7.2 topology identity this rig was
298302# written against.
299- $primary0 -> append_conf(' postgresql.conf' , " cluster.lms_workers = 1\n " );
300- $primary1 -> append_conf(' postgresql.conf' , " cluster.lms_workers = 1\n " );
301303$standby0 -> append_conf(' postgresql.conf' , " cluster.lms_workers = 1\n " );
302304$standby1 -> append_conf(' postgresql.conf' , " cluster.lms_workers = 1\n " );
303305write_pair_conf($standby0 , $standby1 , ' adg2_standby' );
0 commit comments