title: Index length for varchar column in PostgreSQL
body: <p>In MySQL we can set the length of the field that will be indexed this way:</p>
  
  <pre><code>CREATE INDEX part_of_name ON customer (name(10));
  </code></pre>
  
  <p>Can we do the same in PostgreSQL? If yes, then how?</p>