query_routing_test_insert.sql 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. \set ON_ERROR_STOP on
  2. SET SHARDING KEY TO '1';
  3. INSERT INTO data (id, value) VALUES (1, 'value_1');
  4. SET SHARDING KEY TO '2';
  5. INSERT INTO data (id, value) VALUES (2, 'value_1');
  6. SET SHARDING KEY TO '3';
  7. INSERT INTO data (id, value) VALUES (3, 'value_1');
  8. SET SHARDING KEY TO '4';
  9. INSERT INTO data (id, value) VALUES (4, 'value_1');
  10. SET SHARDING KEY TO '5';
  11. INSERT INTO data (id, value) VALUES (5, 'value_1');
  12. SET SHARDING KEY TO '6';
  13. INSERT INTO data (id, value) VALUES (6, 'value_1');
  14. SET SHARDING KEY TO '7';
  15. INSERT INTO data (id, value) VALUES (7, 'value_1');
  16. SET SHARDING KEY TO '8';
  17. INSERT INTO data (id, value) VALUES (8, 'value_1');
  18. SET SHARDING KEY TO '9';
  19. INSERT INTO data (id, value) VALUES (9, 'value_1');
  20. SET SHARDING KEY TO '10';
  21. INSERT INTO data (id, value) VALUES (10, 'value_1');
  22. SET SHARDING KEY TO '11';
  23. INSERT INTO data (id, value) VALUES (11, 'value_1');
  24. SET SHARDING KEY TO '12';
  25. INSERT INTO data (id, value) VALUES (12, 'value_1');
  26. SET SHARDING KEY TO '13';
  27. INSERT INTO data (id, value) VALUES (13, 'value_1');
  28. SET SHARDING KEY TO '14';
  29. INSERT INTO data (id, value) VALUES (14, 'value_1');
  30. SET SHARDING KEY TO '15';
  31. INSERT INTO data (id, value) VALUES (15, 'value_1');
  32. SET SHARDING KEY TO '16';
  33. INSERT INTO data (id, value) VALUES (16, 'value_1');
  34. set sharding key to '17';
  35. INSERT INTO data (id, value) VALUES (17, 'value_1');
  36. SeT SHaRDInG KeY to '18';
  37. INSERT INTO data (id, value) VALUES (18, 'value_1');