From: Marko Kreen Date: Thu, 29 Mar 2012 15:07:01 +0000 (+0300) Subject: Refresh SPLIT test - order changed. X-Git-Tag: plproxy_2_4_rc1~6 X-Git-Url: http://git.postgresql.org/gitweb/edit?a=commitdiff_plain;h=10846dc8064563af6d39149379c89c09317c5bc2;p=plproxy.git Refresh SPLIT test - order changed. Now connections are added to active_list in order they get tagged from hash function. --- diff --git a/Makefile b/Makefile index dc15e10..16ca506 100644 --- a/Makefile +++ b/Makefile @@ -129,7 +129,7 @@ test: install $(MAKE) installcheck || { filterdiff --format=unified regression.diffs | less; exit 1; } ack: - cp results/*.out expected/ + cp results/*.out test/expected/ deb: debuild -uc -us -b diff --git a/test/expected/plproxy_split.out b/test/expected/plproxy_split.out index 5db901a..6f5e017 100644 --- a/test/expected/plproxy_split.out +++ b/test/expected/plproxy_split.out @@ -65,10 +65,10 @@ $$ split a; cluster 'testcluster'; run on ascii(a);$$ language plproxy; select * from test_array(array['a','b','c','d'], array['e','f','g','h'], 'foo'); test_array ----------------------------------- - test_part0 $1:d $2:e,f,g,h $3:foo test_part1 $1:a $2:e,f,g,h $3:foo test_part2 $1:b $2:e,f,g,h $3:foo test_part3 $1:c $2:e,f,g,h $3:foo + test_part0 $1:d $2:e,f,g,h $3:foo (4 rows) -- run on text hash, split two arrays (nop split) @@ -86,10 +86,10 @@ $$ split a, b; cluster 'testcluster'; run on ascii(a);$$ language plproxy; select * from test_array(array['a','b','c','d'], array['e','f','g','h'], 'foo'); test_array ----------------------------- - test_part0 $1:d $2:h $3:foo test_part1 $1:a $2:e $3:foo test_part2 $1:b $2:f $3:foo test_part3 $1:c $2:g $3:foo + test_part0 $1:d $2:h $3:foo (4 rows) select * from test_array(null, null, null); @@ -127,10 +127,10 @@ $$ split all; cluster 'testcluster'; run on ascii(a);$$ language plproxy; select * from test_array(array['a','b','c','d'], array['e','f','g','h'], 'foo'); test_array ----------------------------- - test_part0 $1:d $2:h $3:foo test_part1 $1:a $2:e $3:foo test_part2 $1:b $2:f $3:foo test_part3 $1:c $2:g $3:foo + test_part0 $1:d $2:h $3:foo (4 rows) -- run on arg