query_routing_test_select.sql 980 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. \set ON_ERROR_STOP on
  2. SET SHARDING KEY TO '1';
  3. SELECT * FROM data WHERE id = 1;
  4. SET SHARDING KEY TO '2';
  5. SELECT * FROM data WHERE id = 2;
  6. SET SHARDING KEY TO '3';
  7. SELECT * FROM data WHERE id = 3;
  8. SET SHARDING KEY TO '4';
  9. SELECT * FROM data WHERE id = 4;
  10. SET SHARDING KEY TO '5';
  11. SELECT * FROM data WHERE id = 5;
  12. SET SHARDING KEY TO '6';
  13. SELECT * FROM data WHERE id = 6;
  14. SET SHARDING KEY TO '7';
  15. SELECT * FROM data WHERE id = 7;
  16. SET SHARDING KEY TO '8';
  17. SELECT * FROM data WHERE id = 8;
  18. SET SHARDING KEY TO '9';
  19. SELECT * FROM data WHERE id = 9;
  20. SET SHARDING KEY TO '10';
  21. SELECT * FROM data WHERE id = 10;
  22. SET SHARDING KEY TO '11';
  23. SELECT * FROM data WHERE id = 11;
  24. SET SHARDING KEY TO '12';
  25. SELECT * FROM data WHERE id = 12;
  26. SET SHARDING KEY TO '13';
  27. SELECT * FROM data WHERE id = 13;
  28. SET SHARDING KEY TO '14';
  29. SELECT * FROM data WHERE id = 14;
  30. SET SHARDING KEY TO '15';
  31. SELECT * FROM data WHERE id = 15;
  32. SET SHARDING KEY TO '16';
  33. SELECT * FROM data WHERE id = 16;