title: Begin...commit every 50 rows
body: <p>I have a 500,000 line sql script.</p>
  
  <pre><code>update users set region_id = 9814746 where id = 101 and region_id is null;
  update users set region_id = 9814731 where id = 102 and region_id is null;
  update users set region_id = 3470676 where id = 103 and region_id is null;
  ...
  ....
  </code></pre>
  
  <p>I need to be able to generate a script with begin...commit every 50 lines.
  How do I do this?
  I'll be running this in pg-admin.</p>
  
  <p>Thanks,
  Sharadov</p>