title: How to create and insert n rows of test data of random strings into table in Postgres with SQL?
body: <p>In SQL in Postgres, how do I create and insert <code>n</code> number of rows of test data with random strings length <code>x</code>?</p>
  
  <p>e.g.,</p>
  
  <pre class="lang-sql prettyprint-override"><code>CREATE TABLE my_table (my_text_column TEXT);
  -- now insert n rows of test data into my_table, with random
  -- strings of length x for my_text_column
  </code></pre>