Refresh SPLIT test - order changed.
authorMarko Kreen <markokr@gmail.com>
Thu, 29 Mar 2012 15:07:01 +0000 (18:07 +0300)
committerMarko Kreen <markokr@gmail.com>
Thu, 29 Mar 2012 15:42:08 +0000 (18:42 +0300)
Now connections are added to active_list in order
they get tagged from hash function.

Makefile
test/expected/plproxy_split.out

index dc15e10adda1008b6c05c1c6c230f4b7a9f062a3..16ca5068459ad014ae6ebcc6cdef21746ddbd33f 100644 (file)
--- 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
index 5db901a5e345348b9b3bd53827716b14f9ae3714..6f5e017f6b02aac93dd443da740c3948e0ec09a3 100644 (file)
@@ -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