title: Difference between GiST and GIN index
body: <p>I am implementing a table that has a column with a data type of <code>tsvector</code> and I am trying to understand what index would be better to use?</p>
  
  <p>GIN or GiST?</p>
  
  <p>In looking through the <a href="http://www.postgresql.org/docs/9.1/static/textsearch-indexes.html" rel="noreferrer">postgres documentation here</a> I seem to get that:</p>
  
  <ul>
  <li><p>GiST is faster to update and build the index and less accurate than gin.</p></li>
  <li><p>GIN is slower to update and build the index but is more accurate.</p></li>
  </ul>
  
  <p>OK, so why would anybody want a gist indexed field over gin? If gist could give you the wrong results? There must be some advantage (outside performance) on this.</p>
  
  <p>Can anybody explain in layman's terms when I would want to use GIN vs. GiST?</p>