@@ -71,7 +71,7 @@ EXPLAIN (COSTS OFF) SELECT * FROM test.hash_rel WHERE value = 2;
7171EXPLAIN (COSTS OFF) SELECT * FROM test .hash_rel WHERE value = 2 OR value = 1 ;
7272-- Temporarily commented out
7373-- EXPLAIN (COSTS OFF) SELECT * FROM test.hash_rel WHERE value BETWEEN 1 AND 2;
74- -- QUERY PLAN
74+ -- QUERY PLAN
7575-- -------------------------------------------------
7676-- Append
7777-- -> Seq Scan on hash_rel_1
@@ -203,7 +203,7 @@ begin
203203 ' wrong plan provider' );
204204
205205 perform test .pathman_equal ((plan- > 0 - > ' Plan' - > ' Plans' - > 1 - > ' Relation Name' )::text ,
206- ' "runtime_test_1_1" ' ,
206+ format( ' "runtime_test_1_%s" ' , pathman . get_hash (hashint4( 1 ), 6 )) ,
207207 ' wrong partition' );
208208
209209 select count (* ) from jsonb_array_elements_text(plan- > 0 - > ' Plan' - > ' Plans' ) into num;
@@ -237,7 +237,7 @@ begin
237237
238238 for i in 0 ..3 loop
239239 perform test .pathman_equal ((plan- > 0 - > ' Plan' - > ' Plans' - > 1 - > ' Plans' - > i- > ' Relation Name' )::text ,
240- format(' "runtime_test_1_%s"' , i + 1 ),
240+ format(' "runtime_test_1_%s"' , pathman . get_hash (hashint4( i + 1 ), 6 ) ),
241241 ' wrong partition' );
242242
243243 num = plan- > 0 - > ' Plan' - > ' Plans' - > 1 - > ' Plans' - > i- > ' Actual Loops' ;
@@ -272,7 +272,7 @@ begin
272272
273273 for i in 0 ..5 loop
274274 num = plan- > 0 - > ' Plan' - > ' Plans' - > 1 - > ' Plans' - > i- > ' Actual Loops' ;
275- perform test .pathman_assert (num > 0 and num <= 1667 , ' expected no more than 1667 loops' );
275+ perform test .pathman_assert (num > 0 and num <= 1718 , ' expected no more than 1718 loops' );
276276 end loop;
277277
278278 return ' ok' ;
@@ -305,7 +305,7 @@ begin
305305
306306 for i in 0 ..3 loop
307307 perform test .pathman_equal ((plan- > 0 - > ' Plan' - > ' Plans' - > 1 - > ' Plans' - > 0 - > ' Plans' - > i- > ' Relation Name' )::text ,
308- format(' "runtime_test_2_%s"' , i + 1 ),
308+ format(' "runtime_test_2_%s"' , pathman . get_hash (hashint4( i + 1 ), 6 ) ),
309309 ' wrong partition' );
310310
311311 num = plan- > 0 - > ' Plan' - > ' Plans' - > 1 - > ' Plans' - > 0 - > ' Plans' - > i- > ' Actual Loops' ;
0 commit comments